blob: d2ca8ee8040fac7b3d6803838fbdaa3dcdf3baca [file] [log] [blame]
Andrew Walbran12f61402020-10-14 11:10:53 +01001[package]
2name = "nix"
3description = "Rust friendly bindings to *nix APIs"
4edition = "2018"
David LeGared1a942b2022-03-16 20:38:46 +00005version = "0.23.1"
6rust-version = "1.46"
Andrew Walbran12f61402020-10-14 11:10:53 +01007authors = ["The nix-rust Project Developers"]
8repository = "https://github.com/nix-rust/nix"
9license = "MIT"
10categories = ["os::unix-apis"]
David LeGared1a942b2022-03-16 20:38:46 +000011include = ["src/**/*", "test/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
Andrew Walbran12f61402020-10-14 11:10:53 +010012
Joel Galenson4727c112021-04-02 12:22:24 -070013[package.metadata.docs.rs]
14targets = [
15 "x86_64-unknown-linux-gnu",
16 "aarch64-linux-android",
17 "x86_64-apple-darwin",
18 "aarch64-apple-ios",
19 "x86_64-unknown-freebsd",
20 "x86_64-unknown-openbsd",
21 "x86_64-unknown-netbsd",
22 "x86_64-unknown-dragonfly",
23 "x86_64-fuchsia",
Joel Galensone7950d92021-06-21 14:41:02 -070024 "x86_64-unknown-redox",
25 "x86_64-unknown-illumos"
Joel Galenson4727c112021-04-02 12:22:24 -070026]
27
Andrew Walbran12f61402020-10-14 11:10:53 +010028[dependencies]
David LeGared1a942b2022-03-16 20:38:46 +000029libc = { version = "0.2.102", features = [ "extra_traits" ] }
30bitflags = "1.1"
Joel Galenson4727c112021-04-02 12:22:24 -070031cfg-if = "1.0"
Andrew Walbran12f61402020-10-14 11:10:53 +010032
Joel Galensone7950d92021-06-21 14:41:02 -070033[target.'cfg(not(target_os = "redox"))'.dependencies]
34memoffset = "0.6.3"
35
Andrew Walbran12f61402020-10-14 11:10:53 +010036[target.'cfg(target_os = "dragonfly")'.build-dependencies]
37cc = "1"
38
39[dev-dependencies]
Joel Galensone7950d92021-06-21 14:41:02 -070040assert-impl = "0.1"
Andrew Walbran12f61402020-10-14 11:10:53 +010041lazy_static = "1.2"
David LeGared1a942b2022-03-16 20:38:46 +000042parking_lot = "0.11.2"
Joel Galensone7950d92021-06-21 14:41:02 -070043rand = "0.8"
44tempfile = "3.2.0"
45semver = "1.0.0"
Andrew Walbran12f61402020-10-14 11:10:53 +010046
47[target.'cfg(any(target_os = "android", target_os = "linux"))'.dev-dependencies]
Joel Galenson4727c112021-04-02 12:22:24 -070048caps = "0.5.1"
Andrew Walbran12f61402020-10-14 11:10:53 +010049
50[target.'cfg(target_os = "freebsd")'.dev-dependencies]
51sysctl = "0.1"
52
53[[test]]
54name = "test"
55path = "test/test.rs"
56
57[[test]]
58name = "test-aio-drop"
59path = "test/sys/test_aio_drop.rs"
60
61[[test]]
62name = "test-clearenv"
63path = "test/test_clearenv.rs"
64
65[[test]]
66name = "test-lio-listio-resubmit"
67path = "test/sys/test_lio_listio_resubmit.rs"
68
69[[test]]
70name = "test-mount"
71path = "test/test_mount.rs"
72harness = false
73
74[[test]]
75name = "test-ptymaster-drop"
76path = "test/test_ptymaster_drop.rs"