1 | [package] |
2 | name = "nix" |
3 | description = "Rust friendly bindings to *nix APIs" |
4 | edition = "2021" |
5 | version = "0.29.0" |
6 | rust-version = "1.69" |
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 = ["build.rs" , "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.155" , 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 | fanotify = [] |
46 | feature = [] |
47 | fs = [] |
48 | hostname = [] |
49 | inotify = [] |
50 | ioctl = [] |
51 | kmod = [] |
52 | mman = [] |
53 | mount = ["uio" ] |
54 | mqueue = ["fs" ] |
55 | net = ["socket" ] |
56 | personality = [] |
57 | poll = [] |
58 | pthread = [] |
59 | ptrace = ["process" ] |
60 | quota = [] |
61 | process = [] |
62 | reboot = [] |
63 | resource = [] |
64 | sched = ["process" ] |
65 | signal = ["process" ] |
66 | socket = ["memoffset" ] |
67 | term = [] |
68 | time = [] |
69 | ucontext = ["signal" ] |
70 | uio = [] |
71 | user = ["feature" ] |
72 | zerocopy = ["fs" , "uio" ] |
73 | |
74 | [dev-dependencies] |
75 | assert-impl = "0.1" |
76 | parking_lot = "0.12" |
77 | rand = "0.8" |
78 | tempfile = "3.7.1" |
79 | semver = "1.0.7" |
80 | |
81 | [target.'cfg(any(target_os = "android", target_os = "linux"))'.dev-dependencies] |
82 | caps = "0.5.3" |
83 | |
84 | [target.'cfg(target_os = "freebsd")'.dev-dependencies] |
85 | sysctl = "0.4" |
86 | |
87 | [build-dependencies] |
88 | cfg_aliases = "0.2" |
89 | |
90 | [[test]] |
91 | name = "test" |
92 | path = "test/test.rs" |
93 | |
94 | [[test]] |
95 | name = "test-aio-drop" |
96 | path = "test/sys/test_aio_drop.rs" |
97 | |
98 | [[test]] |
99 | name = "test-clearenv" |
100 | path = "test/test_clearenv.rs" |
101 | |
102 | [[test]] |
103 | name = "test-prctl" |
104 | path = "test/sys/test_prctl.rs" |
105 | |