Cargo: optimize path-absolutize

Now that all the uses of std::env::set_current_dir have been removed, we
can add a bit of caching in that crate.
This commit is contained in:
zimbatm 2021-02-22 14:09:30 +01:00
parent 09638af104
commit 1f5c7c30f1
No known key found for this signature in database
GPG Key ID: 71BAF6D40C1D63D7

View File

@ -15,7 +15,6 @@ glob = "0.3"
hex = "0.4"
ignore = "0.4.17"
log = "0.4"
path-absolutize = "3.0.6"
rayon = "1.5.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
@ -24,6 +23,12 @@ structopt = "0.3"
toml = "0.5"
which = "4.0.2"
[dependencies.path-absolutize]
version = "3.0.6"
# Do not use `std::env::set_current_dir`.
# See https://github.com/magiclen/path-absolutize#once_cell_cache
features = ["once_cell_cache"]
[dev-dependencies]
criterion = "0.3"