1[package]
2name = "which"
3version = "7.0.3"
4edition = "2021"
5rust-version = "1.70"
6authors = ["Harry Fei <tiziyuanfang@gmail.com>, Jacob Kiesel <jake@bitcrafters.co>"]
7repository = "https://github.com/harryfei/which-rs.git"
8documentation = "https://docs.rs/which/"
9license = "MIT"
10description = "A Rust equivalent of Unix command \"which\". Locate installed executable in cross platforms."
11readme = "README.md"
12categories = ["os", "filesystem"]
13keywords = ["which", "which-rs", "unix", "command"]
14
15[features]
16regex = ["dep:regex"]
17tracing = ["dep:tracing"]
18
19[dependencies]
20either = "1.9.0"
21regex = { version = "1.10.2", optional = true }
22tracing = { version = "0.1.40", default-features = false, optional = true }
23
24[target.'cfg(any(windows, unix, target_os = "redox"))'.dependencies]
25env_home = "0.1.0"
26
27[target.'cfg(any(unix, target_os = "wasi", target_os = "redox"))'.dependencies]
28rustix = { version = "1.0.5", default-features = false, features = ["fs", "std"] }
29
30[target.'cfg(windows)'.dependencies]
31winsafe = { version = "0.0.19", features = ["kernel"] }
32
33[dev-dependencies]
34tempfile = "3.9.0"
35
36[package.metadata.docs.rs]
37all-features = true
38