Skip to content

Adds rayon feature and impl IntoParallelIterator for ArrayVec #164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: rust
sudo: false
env:
- FEATURES='serde'
- FEATURES='serde rayon'
matrix:
include:
- rust: 1.36.0
Expand All @@ -11,6 +11,9 @@ matrix:
- rust: stable
env:
- FEATURES='serde'
- rust: stable
env:
- FEATURES='rayon'
- rust: stable
env:
- FEATURES='array-sizes-33-128 array-sizes-129-255'
Expand All @@ -19,6 +22,9 @@ matrix:
- rust: nightly
env:
- FEATURES='serde'
- rust: nightly
env:
- FEATURES='rayon'
- rust: nightly
env:
- FEATURES='array-sizes-33-128 array-sizes-129-255'
Expand Down
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ default-features = false
[dev-dependencies.serde_test]
version = "1.0"

[dependencies.rayon]
version = "1.0"
optional = true
default-features = false

[dev-dependencies]
matches = { version = "0.1" }
bencher = "0.1.4"
Expand Down
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ use crate::array::Index;
pub use crate::array_string::ArrayString;
pub use crate::errors::CapacityError;

#[cfg(feature="rayon")]
mod rayon_impls;
#[cfg(feature="rayon")]
pub use rayon_impls::IntoParIter;

/// A vector with a fixed capacity.
///
Expand Down
Loading