1[package]
2name = "nix"
3description = "Rust friendly bindings to *nix APIs"
4edition = "2018"
5version = "0.26.4"
6rust-version = "1.56"
7authors = ["The nix-rust Project Developers"]
8repository = "https://github.com/nix-rust/nix"
9license = "MIT"
10categories = ["os::unix-apis"]
11include = ["src/**/*", "test/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
12
13[package.metadata.docs.rs]
14rustdoc-args = ["--cfg", "docsrs"]
15targets = [
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]
30libc = { version = "0.2.137", features = [ "extra_traits" ] }
31bitflags = "1.1"
32cfg-if = "1.0"
33pin-utils = { version = "0.1.0", optional = true }
34
35[target.'cfg(not(target_os = "redox"))'.dependencies]
36memoffset = { version = "0.7", optional = true }
37
38[features]
39default = [
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
47acct = []
48aio = ["pin-utils"]
49dir = ["fs"]
50env = []
51event = []
52feature = []
53fs = []
54hostname = []
55inotify = []
56ioctl = []
57kmod = []
58mman = []
59mount = ["uio"]
60mqueue = ["fs"]
61net = ["socket"]
62personality = []
63poll = []
64pthread = []
65ptrace = ["process"]
66quota = []
67process = []
68reboot = []
69resource = []
70sched = ["process"]
71signal = ["process"]
72socket = ["memoffset"]
73term = []
74time = []
75ucontext = ["signal"]
76uio = []
77user = ["feature"]
78zerocopy = ["fs", "uio"]
79
80[dev-dependencies]
81assert-impl = "0.1"
82lazy_static = "1.4"
83parking_lot = "0.12"
84rand = "0.8"
85tempfile = "3.3"
86semver = "1.0.7"
87
88[target.'cfg(any(target_os = "android", target_os = "linux"))'.dev-dependencies]
89caps = "0.5.3"
90
91[target.'cfg(target_os = "freebsd")'.dev-dependencies]
92sysctl = "0.4"
93
94[[test]]
95name = "test"
96path = "test/test.rs"
97
98[[test]]
99name = "test-aio-drop"
100path = "test/sys/test_aio_drop.rs"
101
102[[test]]
103name = "test-clearenv"
104path = "test/test_clearenv.rs"
105
106[[test]]
107name = "test-mount"
108path = "test/test_mount.rs"
109harness = false
110
111[[test]]
112name = "test-ptymaster-drop"
113path = "test/test_ptymaster_drop.rs"
114