diff --git a/Cargo.lock b/Cargo.lock index e4275114b5..b5cf69c36d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2077,6 +2077,17 @@ dependencies = [ "windows-sys 0.59.0", ] +[[package]] +name = "faccess" +version = "0.2.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "59ae66425802d6a903e268ae1a08b8c38ba143520f227a205edf4e9c7e3e26d5" +dependencies = [ + "bitflags 1.3.2", + "libc", + "winapi", +] + [[package]] name = "fastrand" version = "2.2.0" @@ -2206,6 +2217,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62d91fd049c123429b018c47887d3f75a265540dd3c30ba9cb7bae9197edb03a" dependencies = [ "autocfg", + "path_facts", "tokio", ] @@ -4332,6 +4344,15 @@ version = "1.0.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d01a5bd0424d00070b0098dd17ebca6f961a959dead1dbcbbbc1d1cd8d3deeba" +[[package]] +name = "path_facts" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c9b66f6b972fe319c6911bb86fb9d9fc76558051d0fdcf5b8755c2cfbc79910a" +dependencies = [ + "faccess", +] + [[package]] name = "pathdiff" version = "0.2.3" diff --git a/Cargo.toml b/Cargo.toml index 5d975e87d3..958cc3417f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,6 +46,7 @@ sealed_test = "1.1.0" tempfile = { workspace = true } rusty-hook = "^0.11.2" nix = { workspace = true, features = ["process"] } +fs-err = { workspace = true, features = ["debug", "debug_tokio", "tokio"] } # for nicer error messages mockito = "1.7" diff --git a/lib/collection/Cargo.toml b/lib/collection/Cargo.toml index ced6c1748e..ba5886a4b7 100644 --- a/lib/collection/Cargo.toml +++ b/lib/collection/Cargo.toml @@ -20,6 +20,7 @@ staging = [] [dev-dependencies] criterion = { workspace = true } +fs-err = { workspace = true, features = ["debug"] } proptest = { workspace = true } rstest = { workspace = true } tar = { workspace = true } diff --git a/lib/common/common/Cargo.toml b/lib/common/common/Cargo.toml index 88ea7bf56b..cfda6ef348 100644 --- a/lib/common/common/Cargo.toml +++ b/lib/common/common/Cargo.toml @@ -47,6 +47,7 @@ memory = { path = "../memory" } [dev-dependencies] common = { path = ".", features = ["testing"] } criterion = { workspace = true } +fs-err = { workspace = true, features = ["debug"] } itertools = { workspace = true } rstest = { workspace = true } self_cell = "1.2.0" diff --git a/lib/common/dataset/Cargo.toml b/lib/common/dataset/Cargo.toml index 44d5411071..178b621e28 100644 --- a/lib/common/dataset/Cargo.toml +++ b/lib/common/dataset/Cargo.toml @@ -18,3 +18,6 @@ flate2 = { version = "1.1.4" } fs-err = { workspace = true } indicatif = { workspace = true } reqwest = { workspace = true } + +[dev-dependencies] +fs-err = { workspace = true, features = ["debug"] } diff --git a/lib/common/io/Cargo.toml b/lib/common/io/Cargo.toml index 011c969532..f41fd5f0c7 100644 --- a/lib/common/io/Cargo.toml +++ b/lib/common/io/Cargo.toml @@ -20,3 +20,6 @@ semver = { workspace = true } serde = { workspace = true } serde_json = { workspace = true } thiserror = { workspace = true } + +[dev-dependencies] +fs-err = { workspace = true, features = ["debug"] } diff --git a/lib/common/memory/Cargo.toml b/lib/common/memory/Cargo.toml index af9a04e8fd..04a5566a94 100644 --- a/lib/common/memory/Cargo.toml +++ b/lib/common/memory/Cargo.toml @@ -25,5 +25,6 @@ thiserror = { workspace = true } nix = { workspace = true } [dev-dependencies] +fs-err = { workspace = true, features = ["debug"] } rand = { workspace = true } tempfile = { workspace = true } diff --git a/lib/edge/Cargo.toml b/lib/edge/Cargo.toml index a0db79cca6..141062c1ee 100644 --- a/lib/edge/Cargo.toml +++ b/lib/edge/Cargo.toml @@ -25,3 +25,4 @@ wal = { workspace = true } [dev-dependencies] anyhow = "1.0" +fs-err = { workspace = true, features = ["debug"] } diff --git a/lib/gridstore/Cargo.toml b/lib/gridstore/Cargo.toml index cfbfdd1530..e647b47930 100644 --- a/lib/gridstore/Cargo.toml +++ b/lib/gridstore/Cargo.toml @@ -40,6 +40,7 @@ rocksdb = { version = "0.24.0", optional = true } [dev-dependencies] criterion = { workspace = true } csv = "1.4.0" +fs-err = { workspace = true, features = ["debug"] } rstest = { workspace = true } proptest = { workspace = true } bustle = "0.5.1" diff --git a/lib/quantization/Cargo.toml b/lib/quantization/Cargo.toml index b51df5e0a3..b7d4ccddab 100644 --- a/lib/quantization/Cargo.toml +++ b/lib/quantization/Cargo.toml @@ -35,6 +35,7 @@ ordered-float = { workspace = true } arrayvec = "0.7.6" [dev-dependencies] +fs-err = { workspace = true, features = ["debug"] } quantization = { path = ".", features = ["testing"] } criterion = { workspace = true } num_threads = "0.1.6" diff --git a/lib/segment/Cargo.toml b/lib/segment/Cargo.toml index 21ed58780d..3f961ef8db 100644 --- a/lib/segment/Cargo.toml +++ b/lib/segment/Cargo.toml @@ -25,6 +25,7 @@ clap = { workspace = true } criterion = { workspace = true } dataset = { path = "../common/dataset" } env_logger = "0.11" +fs-err = { workspace = true, features = ["debug"] } humantime = { workspace = true } indicatif = { workspace = true } ndarray = "0.16.1" diff --git a/lib/shard/Cargo.toml b/lib/shard/Cargo.toml index 2bde9537ee..69f4a4c7e2 100644 --- a/lib/shard/Cargo.toml +++ b/lib/shard/Cargo.toml @@ -46,7 +46,7 @@ serde_json = { workspace = true } segment = { path = "../segment", default-features = false, features = ["testing"] } shard = { path = ".", default-features = false, features = ["testing"] } -fs-err = { workspace = true } +fs-err = { workspace = true, features = ["debug"] } proptest = { workspace = true } rstest = { workspace = true } serde_cbor = { workspace = true } diff --git a/lib/sparse/Cargo.toml b/lib/sparse/Cargo.toml index ca20e793a7..d683a4df46 100644 --- a/lib/sparse/Cargo.toml +++ b/lib/sparse/Cargo.toml @@ -38,6 +38,7 @@ log = { workspace = true } [dev-dependencies] criterion = { workspace = true } dataset = { path = "../common/dataset" } +fs-err = { workspace = true, features = ["debug"] } generic-tests = { workspace = true } indicatif = { workspace = true } sparse = { path = ".", features = ["testing"] } diff --git a/lib/storage/Cargo.toml b/lib/storage/Cargo.toml index 1859b73c8d..0747a0fef8 100644 --- a/lib/storage/Cargo.toml +++ b/lib/storage/Cargo.toml @@ -16,6 +16,7 @@ tracing = ["dep:tracing", "api/tracing", "collection/tracing", "segment/tracing" staging = ["collection/staging"] [dev-dependencies] +fs-err = { workspace = true, features = ["debug"] } proptest = { workspace = true } env_logger = "0.11"