1 | [package] |
2 | name = "nix" |
3 | description = "Rust friendly bindings to *nix APIs" |
4 | edition = "2018" |
5 | version = "0.26.4" |
6 | rust-version = "1.56" |
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 | rustdoc-args = ["--cfg" , "docsrs" ] |
15 | targets = [ |
16 | "x86_64-unknown-linux-gnu" , |
17 | "aarch64-linux-android" , |
18 | "x86_64-apple-darwin" , |
19 | "aarch64-apple-ios" , |
20 | "x86_64-unknown-freebsd" , |
21 | "x86_64-unknown-openbsd" , |
22 | "x86_64-unknown-netbsd" , |
23 | "x86_64-unknown-dragonfly" , |
24 | "x86_64-fuchsia" , |
25 | "x86_64-unknown-redox" , |
26 | "x86_64-unknown-illumos" |
27 | ] |
28 | |
29 | [dependencies] |
30 | libc = { version = "0.2.137" , features = [ "extra_traits" ] } |
31 | bitflags = "1.1" |
32 | cfg-if = "1.0" |
33 | pin-utils = { version = "0.1.0" , optional = true } |
34 | |
35 | [target.'cfg(not(target_os = "redox"))'.dependencies] |
36 | memoffset = { version = "0.7" , optional = true } |
37 | |
38 | [features] |
39 | default = [ |
40 | "acct" , "aio" , "dir" , "env" , "event" , "feature" , "fs" , |
41 | "hostname" , "inotify" , "ioctl" , "kmod" , "mman" , "mount" , "mqueue" , |
42 | "net" , "personality" , "poll" , "process" , "pthread" , "ptrace" , "quota" , |
43 | "reboot" , "resource" , "sched" , "signal" , "socket" , "term" , "time" , |
44 | "ucontext" , "uio" , "user" , "zerocopy" , |
45 | ] |
46 | |
47 | acct = [] |
48 | aio = ["pin-utils" ] |
49 | dir = ["fs" ] |
50 | env = [] |
51 | event = [] |
52 | feature = [] |
53 | fs = [] |
54 | hostname = [] |
55 | inotify = [] |
56 | ioctl = [] |
57 | kmod = [] |
58 | mman = [] |
59 | mount = ["uio" ] |
60 | mqueue = ["fs" ] |
61 | net = ["socket" ] |
62 | personality = [] |
63 | poll = [] |
64 | pthread = [] |
65 | ptrace = ["process" ] |
66 | quota = [] |
67 | process = [] |
68 | reboot = [] |
69 | resource = [] |
70 | sched = ["process" ] |
71 | signal = ["process" ] |
72 | socket = ["memoffset" ] |
73 | term = [] |
74 | time = [] |
75 | ucontext = ["signal" ] |
76 | uio = [] |
77 | user = ["feature" ] |
78 | zerocopy = ["fs" , "uio" ] |
79 | |
80 | [dev-dependencies] |
81 | assert-impl = "0.1" |
82 | lazy_static = "1.4" |
83 | parking_lot = "0.12" |
84 | rand = "0.8" |
85 | tempfile = "3.3" |
86 | semver = "1.0.7" |
87 | |
88 | [target.'cfg(any(target_os = "android", target_os = "linux"))'.dev-dependencies] |
89 | caps = "0.5.3" |
90 | |
91 | [target.'cfg(target_os = "freebsd")'.dev-dependencies] |
92 | sysctl = "0.4" |
93 | |
94 | [[test]] |
95 | name = "test" |
96 | path = "test/test.rs" |
97 | |
98 | [[test]] |
99 | name = "test-aio-drop" |
100 | path = "test/sys/test_aio_drop.rs" |
101 | |
102 | [[test]] |
103 | name = "test-clearenv" |
104 | path = "test/test_clearenv.rs" |
105 | |
106 | [[test]] |
107 | name = "test-mount" |
108 | path = "test/test_mount.rs" |
109 | harness = false |
110 | |
111 | [[test]] |
112 | name = "test-ptymaster-drop" |
113 | path = "test/test_ptymaster_drop.rs" |
114 | |