1 | [package] |
2 | name = "xattr" |
3 | edition = "2021" |
4 | version = "1.3.1" |
5 | authors = ["Steven Allen <steven@stebalien.com>" ] |
6 | description = "unix extended filesystem attributes" |
7 | |
8 | documentation = "https://docs.rs/xattr" |
9 | repository = "https://github.com/Stebalien/xattr" |
10 | keywords = ["xattr" , "filesystem" , "unix" ] |
11 | license = "MIT/Apache-2.0" |
12 | |
13 | [features] |
14 | default = ["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. |
21 | unsupported = [] |
22 | |
23 | [dependencies.rustix] |
24 | version = "0.38.29" |
25 | default-features = false |
26 | features = ["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] |
30 | version = "0.4.11" |
31 | default-features = false |
32 | features = ["std" ] |
33 | |
34 | [target.'cfg(any(target_os = "freebsd", target_os = "netbsd"))'.dependencies] |
35 | libc = "0.2.150" |
36 | |
37 | [dev-dependencies] |
38 | rustix = { version = "0.38.28" , default-features = false, features = ["net" ] } |
39 | tempfile = "3" |
40 | |