Skip to content

Commit

Permalink
Use parallel feature on remove_dir_all for Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Saveau <[email protected]>
  • Loading branch information
SUPERCILEX committed Dec 9, 2023
1 parent cb34600 commit 844b20b
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 36 deletions.
47 changes: 24 additions & 23 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 @@ -25,7 +25,7 @@ version = "0.0.0"
publish = false

[dev-dependencies]
supercilex-tests = { version = "0.4.2", default-features = false }
supercilex-tests = { version = "0.4.3", default-features = false }

[profile.release]
lto = true
Expand Down
2 changes: 1 addition & 1 deletion comparisons/rm_og_crappy/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ publish = false

[dependencies]
futures = "0.3.29"
tokio = { version = "1.34.0", features = ["rt"] }
tokio = { version = "1.35.0", features = ["rt"] }
2 changes: 1 addition & 1 deletion comparisons/rm_remove_dir_all/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ edition.workspace = true
publish = false

[dependencies]
remove_dir_all = "0.8.2"
remove_dir_all = { version = "0.8.2", features = ["parallel"] }
4 changes: 2 additions & 2 deletions cpz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ cache-size = "0.6.0"
criterion = "0.5.1"
memmap2 = "0.9.0"
rand = "0.8.5"
supercilex-tests = { version = "0.4.2", default-features = false, features = ["clap"] }
supercilex-tests = { version = "0.4.3", default-features = false, features = ["clap"] }
tempfile = "3.8.1"
trycmd = "0.14.19"

[target.'cfg(unix)'.dev-dependencies]
rustix = { version = "0.38.26", features = ["fs", "pipe"] }
rustix = { version = "0.38.28", features = ["fs", "pipe"] }

[[bench]]
name = "copy_methods"
Expand Down
6 changes: 3 additions & 3 deletions fuc_engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ thiserror = "1.0.50"
typed-builder = "0.18.0"

[target.'cfg(target_os = "linux")'.dependencies]
rustix = { version = "0.38.26", features = ["fs", "thread", "linux_latest"] }
rustix = { version = "0.38.28", features = ["fs", "thread", "linux_latest"] }

[target.'cfg(not(target_os = "linux"))'.dependencies]
rayon = "1.8.0"

[target.'cfg(target_os = "windows")'.dependencies]
remove_dir_all = "0.8.2"
remove_dir_all = { version = "0.8.2", features = ["parallel"] }

[dev-dependencies]
ftzz = "2.0.3"
io-adapters = "0.1.0"
rstest = { version = "0.18.2", default-features = false }
supercilex-tests = { version = "0.4.2", default-features = false, features = ["api"] }
supercilex-tests = { version = "0.4.3", default-features = false, features = ["api"] }
tempfile = "3.8.1"
10 changes: 5 additions & 5 deletions rmz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ thiserror = "1.0.50"
[dev-dependencies]
criterion = "0.5.1"
ftzz = "2.0.3"
io-adapters = "0.1.0"
remove_dir_all = { version = "0.8.2", features = ["parallel"] }
rm_og_crappy = { path = "../comparisons/rm_og_crappy" }
rm_rayon = { path = "../comparisons/rm_rayon" }
supercilex-tests = { version = "0.4.3", default-features = false, features = ["clap"] }
tempfile = "3.8.1"
trycmd = "0.14.19"
rm_rayon = { path = "../comparisons/rm_rayon" }
rm_og_crappy = { path = "../comparisons/rm_og_crappy" }
supercilex-tests = { version = "0.4.2", default-features = false, features = ["clap"] }
remove_dir_all = "0.8.2"
io-adapters = "0.1.0"

[[bench]]
name = "rmz"
Expand Down

0 comments on commit 844b20b

Please sign in to comment.