1[package]
2name = "xattr"
3edition = "2021"
4version = "1.3.1"
5authors = ["Steven Allen <steven@stebalien.com>"]
6description = "unix extended filesystem attributes"
7
8documentation = "https://docs.rs/xattr"
9repository = "https://github.com/Stebalien/xattr"
10keywords = ["xattr", "filesystem", "unix"]
11license = "MIT/Apache-2.0"
12
13[features]
14default = ["unsupported"]
15# Adds a dummy implementation for unsupported platforms. This is useful when
16# developing platform-independent code that doesn't absolutely need xattr
17# support.
18#
19# You can disable this feature if you want compilation to fail on unsupported
20# platforms. This would make sense if you absolutely need xattr support.
21unsupported = []
22
23[dependencies.rustix]
24version = "0.38.29"
25default-features = false
26features = ["fs", "std"]
27
28# Enable the `std` feature here so that `std::os::raw` is used.
29[target.'cfg(target_os = "linux")'.dependencies.linux-raw-sys]
30version = "0.4.11"
31default-features = false
32features = ["std"]
33
34[target.'cfg(any(target_os = "freebsd", target_os = "netbsd"))'.dependencies]
35libc = "0.2.150"
36
37[dev-dependencies]
38rustix = { version = "0.38.28", default-features = false, features = ["net"] }
39tempfile = "3"
40