From 1f5c7c30f1a32fceb644e0130754f03ac637204e Mon Sep 17 00:00:00 2001 From: zimbatm Date: Mon, 22 Feb 2021 14:09:30 +0100 Subject: [PATCH] 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. --- Cargo.toml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 17f913b..c2af1cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"