xref: /rust-libc-0.2.174/libc-test/Cargo.toml (revision b21e075c)
1[package]
2name = "libc-test"
3version = "0.1.0"
4description = "A test crate for the libc crate."
5publish = false
6authors = ["The Rust Project Developers"]
7edition = "2021"
8license = "MIT OR Apache-2.0"
9repository = "https://github.com/rust-lang/libc"
10
11[dependencies]
12cfg-if = "1.0.0"
13libc = { path = "..", version = "0.2.171", default-features = false }
14
15[dev-dependencies]
16syn = { version = "2.0.91", features = ["full", "visit"] }
17proc-macro2 = { version = "1.0.92", features = ["span-locations"] }
18glob = "0.3.2"
19annotate-snippets = { version = "0.11.5", features = ["testing-colors"] }
20
21[build-dependencies]
22cc = "1.0.83"
23# FIXME: Use fork ctest until the maintainer gets back.
24ctest2 = "0.4.3"
25regex = "1.11.1"
26
27[features]
28default = ["std"]
29std = ["libc/std"]
30align = ["libc/align"]
31extra_traits = ["libc/extra_traits"]
32
33[[test]]
34name = "main"
35path = "test/main.rs"
36harness = false
37
38[[test]]
39name = "linux-fcntl"
40path = "test/linux_fcntl.rs"
41harness = false
42
43[[test]]
44name = "linux-if-arp"
45path = "test/linux_if_arp.rs"
46harness = false
47
48[[test]]
49name = "linux-ipv6"
50path = "test/linux_ipv6.rs"
51harness = false
52
53[[test]]
54name = "linux-elf"
55path = "test/linux_elf.rs"
56harness = false
57
58[[test]]
59name = "linux-strerror_r"
60path = "test/linux_strerror_r.rs"
61harness = false
62
63[[test]]
64name = "linux-termios"
65path = "test/linux_termios.rs"
66harness = false
67
68[[test]]
69name = "cmsg"
70path = "test/cmsg.rs"
71harness = true
72
73[[test]]
74name = "makedev"
75path = "test/makedev.rs"
76harness = true
77
78[[test]]
79name = "errqueue"
80path = "test/errqueue.rs"
81harness = true
82
83[[test]]
84name = "sigrt"
85path = "test/sigrt.rs"
86harness = true
87
88[[test]]
89name = "semver"
90path = "test/semver.rs"
91harness = false
92
93[[test]]
94name = "primitive_types"
95path = "test/primitive_types.rs"
96harness = true
97
98[[test]]
99name = "style"
100path = "test/check_style.rs"
101harness = true
102
103[[test]]
104name = "style_tests"
105path = "test/style_tests.rs"
106harness = true
107
108# FIXME(msrv): These should be moved to the root Cargo.toml as `[workspace.lints.*]`
109#              once MSRV is above 1.64 and replaced with `[lints] workspace=true`
110
111[lints.rust]
112
113[lints.clippy]
114