mirror of
https://github.com/numtide/treefmt.git
synced 2024-09-11 17:07:44 +03:00
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:
parent
09638af104
commit
1f5c7c30f1
@ -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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user