1 | [package] |
2 | name = "nix" |
3 | description = "Rust friendly bindings to *nix APIs" |
4 | edition = "2021" |
5 | version = "0.27.1" |
6 | rust-version = "1.65" |
7 | authors = ["The nix-rust Project Developers" ] |
8 | repository = "https://github.com/nix-rust/nix" |
9 | license = "MIT" |
10 | categories = ["os::unix-apis" ] |
11 | include = ["src/**/*" , "test/**/*" , "LICENSE" , "README.md" , "CHANGELOG.md" ] |
12 | |
13 | [package.metadata.docs.rs] |
14 | all-features = true |
15 | rustdoc-args = ["--cfg" , "docsrs" ] |
16 | targets = [ |
17 | "x86_64-unknown-linux-gnu" , |
18 | "aarch64-linux-android" , |
19 | "x86_64-apple-darwin" , |
20 | "aarch64-apple-ios" , |
21 | "x86_64-unknown-freebsd" , |
22 | "x86_64-unknown-openbsd" , |
23 | "x86_64-unknown-netbsd" , |
24 | "x86_64-unknown-dragonfly" , |
25 | "x86_64-fuchsia" , |
26 | "x86_64-unknown-redox" , |
27 | "x86_64-unknown-illumos" |
28 | ] |
29 | |
30 | [dependencies] |
31 | libc = { version = "0.2.147" , features = ["extra_traits" ] } |
32 | bitflags = "2.3.1" |
33 | cfg-if = "1.0" |
34 | pin-utils = { version = "0.1.0" , optional = true } |
35 | memoffset = { version = "0.9" , optional = true } |
36 | |
37 | [features] |
38 | default = [] |
39 | |
40 | acct = [] |
41 | aio = ["pin-utils" ] |
42 | dir = ["fs" ] |
43 | env = [] |
44 | event = [] |
45 | feature = [] |
46 | fs = [] |
47 | hostname = [] |
48 | inotify = [] |
49 | ioctl = [] |
50 | kmod = [] |
51 | mman = [] |
52 | mount = ["uio" ] |
53 | mqueue = ["fs" ] |
54 | net = ["socket" ] |
55 | personality = [] |
56 | poll = [] |
57 | pthread = [] |
58 | ptrace = ["process" ] |
59 | quota = [] |
60 | process = [] |
61 | reboot = [] |
62 | resource = [] |
63 | sched = ["process" ] |
64 | signal = ["process" ] |
65 | socket = ["memoffset" ] |
66 | term = [] |
67 | time = [] |
68 | ucontext = ["signal" ] |
69 | uio = [] |
70 | user = ["feature" ] |
71 | zerocopy = ["fs" , "uio" ] |
72 | |
73 | [dev-dependencies] |
74 | assert-impl = "0.1" |
75 | parking_lot = "0.12" |
76 | rand = "0.8" |
77 | tempfile = "3.7.1" |
78 | semver = "1.0.7" |
79 | |
80 | [target.'cfg(any(target_os = "android", target_os = "linux"))'.dev-dependencies] |
81 | caps = "0.5.3" |
82 | |
83 | [target.'cfg(target_os = "freebsd")'.dev-dependencies] |
84 | sysctl = "0.4" |
85 | |
86 | [[test]] |
87 | name = "test" |
88 | path = "test/test.rs" |
89 | |
90 | [[test]] |
91 | name = "test-aio-drop" |
92 | path = "test/sys/test_aio_drop.rs" |
93 | |
94 | [[test]] |
95 | name = "test-clearenv" |
96 | path = "test/test_clearenv.rs" |
97 | |
98 | [[test]] |
99 | name = "test-mount" |
100 | path = "test/test_mount.rs" |
101 | harness = false |
102 | |
103 | [[test]] |
104 | name = "test-prctl" |
105 | path = "test/sys/test_prctl.rs" |
106 | |