Skip to content

Commit

Permalink
Remove dependency on rayon
Browse files Browse the repository at this point in the history
  • Loading branch information
decryphe committed Oct 29, 2024
1 parent e5658da commit 2be8e67
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 51 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Other

- Removed dependency on rayon

## [0.20.2](https://github.com/librasn/rasn/compare/rasn-v0.20.1...rasn-v0.20.2) - 2024-10-18

### Fixed
Expand Down
47 changes: 0 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ snafu = { version = "0.8.5", default-features = false, features = [
serde_json = { version = "1", default-features = false, features = ["alloc"] }

[dev-dependencies]
criterion = "0.5.1"
criterion = { version = "0.5.1", default-features = false, features = ["plotters", "cargo_bench_support"] }
iai-callgrind = "0.14.0"
once_cell = "1.20.2"
pretty_assertions.workspace = true
Expand Down
1 change: 0 additions & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ proc-macro2 = "1.0.88"
itertools = "0.13"
uuid = { version = "1.11.0", default-features = false, features = ["v4"] }
either = { version = "1.13.0", default-features = false }
rayon = "1.10.0"
3 changes: 1 addition & 2 deletions macros/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1256,12 +1256,11 @@ impl StringValue {
}

let into_flat_set = |constraints: Vec<_>| {
use rayon::prelude::*;
let mut set = constraints
.iter()
.flat_map(|from| match from {
StringRange::Single(value) => vec![*value],
StringRange::Range(start, end) => (*start..*end).into_par_iter().collect(),
StringRange::Range(start, end) => (*start..*end).into_iter().collect(),
})
.collect::<Vec<u32>>();
set.sort();
Expand Down

0 comments on commit 2be8e67

Please sign in to comment.