[package]
edition = "2024"
rust-version = "1.85"
name = "whichdisk"
version = "0.1.0"
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cross-platform disk/volume resolver — given a path, tells you which disk it's on, its mount point, and the relative path"
homepage = "https://github.com/al8n/whichdisk"
documentation = "https://docs.rs/whichdisk"
readme = "README.md"
keywords = [
"disk",
"volume",
"mount",
"path",
"filesystem",
]
categories = [
"filesystem",
"os",
"development-tools",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/al8n/whichdisk"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
cli = [
"clap",
"serde",
"serde_json",
"yaml-rust2",
]
default = []
[lib]
name = "whichdisk"
path = "src/lib.rs"
[[bin]]
name = "whichdisk"
path = "src/main.rs"
required-features = ["cli"]
[[test]]
name = "cli"
path = "tests/cli.rs"
[dependencies.bytes]
version = "1"
[dependencies.clap]
version = "4"
features = ["derive"]
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
optional = true
[dependencies.serde_json]
version = "1"
optional = true
[dependencies.yaml-rust2]
version = "0.11"
optional = true
[dev-dependencies.assert_cmd]
version = "2"
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.predicates]
version = "3"
[dev-dependencies.tempfile]
version = "3"
[target."cfg(unix)".dependencies.memchr]
version = "2"
default-features = false
[target."cfg(unix)".dependencies.rustix]
version = "1"
features = ["fs"]
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = ["Win32_Storage_FileSystem"]
[lints.rust]
rust_2018_idioms = "warn"
single_use_lifetimes = "warn"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(all_tests)",
"cfg(tarpaulin)",
]
[profile.bench]
opt-level = 3
lto = "thin"
codegen-units = 1
debug = 0
debug-assertions = false
rpath = false
overflow-checks = false
incremental = false