Debian Codegraph @

third_party/rust/rustix/Cargo.toml

raw
1 # THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2 #
3 # When uploading crates to the registry Cargo will automatically
4 # "normalize" Cargo.toml files for maximal compatibility
5 # with all versions of Cargo and also rewrite `path` dependencies
6 # to registry (e.g., crates.io) dependencies.
7 #
8 # If you are reading this file be aware that the original Cargo.toml
9 # will likely look very different (and much more reasonable).
10 # See Cargo.toml.orig for the original contents.
11
12 [package]
13 edition = "2021"
14 rust-version = "1.63"
15 name = "rustix"
16 version = "0.38.39"
17 authors = [
18 "Dan Gohman <[email protected]>",
19 "Jakub Konka <[email protected]>",
20 ]
21 build = "build.rs"
22 include = [
23 "src",
24 "build.rs",
25 "Cargo.toml",
26 "COPYRIGHT",
27 "LICENSE*",
28 "/*.md",
29 "benches",
30 ]
31 autobins = false
32 autoexamples = false
33 autotests = false
34 autobenches = false
35 description = "Safe Rust bindings to POSIX/Unix/Linux/Winsock-like syscalls"
36 documentation = "https://docs.rs/rustix"
37 readme = "README.md"
38 keywords = [
39 "api",
40 "file",
41 "network",
42 "safe",
43 "syscall",
44 ]
45 categories = [
46 "os::unix-apis",
47 "date-and-time",
48 "filesystem",
49 "network-programming",
50 ]
51 license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
52 repository = "https://github.com/bytecodealliance/rustix"
53
54 [package.metadata.docs.rs]
55 features = ["all-apis"]
56 targets = [
57 "x86_64-unknown-linux-gnu",
58 "i686-unknown-linux-gnu",
59 "x86_64-apple-darwin",
60 "x86_64-pc-windows-msvc",
61 "x86_64-unknown-freebsd",
62 "x86_64-unknown-openbsd",
63 "x86_64-unknown-netbsd",
64 "x86_64-unknown-dragonfly",
65 "x86_64-unknown-illumos",
66 "x86_64-unknown-redox",
67 "x86_64-unknown-haiku",
68 "wasm32-unknown-emscripten",
69 "wasm32-wasi",
70 ]
71
72 [lib]
73 name = "rustix"
74 path = "src/lib.rs"
75
76 [[bench]]
77 name = "mod"
78 path = "benches/mod.rs"
79 harness = false
80
81 [dependencies.bitflags]
82 version = "2.4.0"
83 default-features = false
84
85 [dependencies.compiler_builtins]
86 version = "0.1.49"
87 optional = true
88
89 [dependencies.core]
90 version = "1.0.0"
91 optional = true
92 package = "rustc-std-workspace-core"
93
94 [dependencies.itoa]
95 version = "1.0.1"
96 optional = true
97 default-features = false
98
99 [dependencies.rustc-std-workspace-alloc]
100 version = "1.0.0"
101 optional = true
102
103 [dev-dependencies.flate2]
104 version = "1.0"
105
106 [dev-dependencies.libc]
107 version = "0.2.161"
108
109 [dev-dependencies.libc_errno]
110 version = "0.3.8"
111 default-features = false
112 package = "errno"
113
114 [dev-dependencies.memoffset]
115 version = "0.9.0"
116
117 [dev-dependencies.serial_test]
118 version = "2.0.0"
119
120 [dev-dependencies.static_assertions]
121 version = "1.1.0"
122
123 [dev-dependencies.tempfile]
124 version = "3.5.0"
125
126 [features]
127 all-apis = [
128 "event",
129 "fs",
130 "io_uring",
131 "mm",
132 "mount",
133 "net",
134 "param",
135 "pipe",
136 "process",
137 "procfs",
138 "pty",
139 "rand",
140 "runtime",
141 "shm",
142 "stdio",
143 "system",
144 "termios",
145 "thread",
146 "time",
147 ]
148 alloc = []
149 cc = []
150 default = [
151 "std",
152 "use-libc-auxv",
153 ]
154 event = []
155 fs = []
156 io_uring = [
157 "event",
158 "fs",
159 "net",
160 "linux-raw-sys/io_uring",
161 ]
162 libc-extra-traits = ["libc?/extra_traits"]
163 linux_4_11 = []
164 linux_latest = ["linux_4_11"]
165 mm = []
166 mount = []
167 net = [
168 "linux-raw-sys/net",
169 "linux-raw-sys/netlink",
170 "linux-raw-sys/if_ether",
171 "linux-raw-sys/xdp",
172 ]
173 param = ["fs"]
174 pipe = []
175 process = ["linux-raw-sys/prctl"]
176 procfs = [
177 "once_cell",
178 "itoa",
179 "fs",
180 ]
181 pty = [
182 "itoa",
183 "fs",
184 ]
185 rand = []
186 runtime = ["linux-raw-sys/prctl"]
187 rustc-dep-of-std = [
188 "core",
189 "rustc-std-workspace-alloc",
190 "compiler_builtins",
191 "linux-raw-sys/rustc-dep-of-std",
192 "bitflags/rustc-dep-of-std",
193 "compiler_builtins?/rustc-dep-of-std",
194 ]
195 shm = ["fs"]
196 std = [
197 "bitflags/std",
198 "alloc",
199 "libc?/std",
200 "libc_errno?/std",
201 "libc-extra-traits",
202 ]
203 stdio = []
204 system = ["linux-raw-sys/system"]
205 termios = []
206 thread = ["linux-raw-sys/prctl"]
207 time = []
208 try_close = []
209 use-explicitly-provided-auxv = []
210 use-libc = [
211 "libc_errno",
212 "libc",
213 "libc-extra-traits",
214 ]
215 use-libc-auxv = []
216
217 [target.'cfg(all(any(target_os = "android", target_os = "linux"), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_endian = "little", target_arch = "s390x"), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))))))'.dependencies.linux-raw-sys]
218 version = "0.4.14"
219 features = [
220 "general",
221 "ioctl",
222 "no_std",
223 ]
224 default-features = false
225
226 [target.'cfg(all(criterion, not(any(target_os = "emscripten", target_os = "wasi"))))'.dev-dependencies.criterion]
227 version = "0.4"
228
229 [target.'cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_endian = "little", target_arch = "s390x"), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))'.dependencies.libc]
230 version = "0.2.161"
231 optional = true
232 default-features = false
233
234 [target.'cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_endian = "little", target_arch = "s390x"), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))'.dependencies.libc_errno]
235 version = "0.3.8"
236 optional = true
237 default-features = false
238 package = "errno"
239
240 [target.'cfg(all(not(rustix_use_libc), not(miri), target_os = "linux", any(target_endian = "little", target_arch = "s390x"), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64"))))'.dependencies.linux-raw-sys]
241 version = "0.4.14"
242 features = [
243 "general",
244 "errno",
245 "ioctl",
246 "no_std",
247 "elf",
248 ]
249 default-features = false
250
251 [target.'cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_endian = "little", target_arch = "s390x"), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))))))'.dependencies.libc]
252 version = "0.2.161"
253 default-features = false
254
255 [target.'cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = "linux", any(target_endian = "little", target_arch = "s390x"), any(target_arch = "arm", all(target_arch = "aarch64", target_pointer_width = "64"), target_arch = "riscv64", all(rustix_use_experimental_asm, target_arch = "powerpc64"), all(rustix_use_experimental_asm, target_arch = "s390x"), all(rustix_use_experimental_asm, target_arch = "mips"), all(rustix_use_experimental_asm, target_arch = "mips32r6"), all(rustix_use_experimental_asm, target_arch = "mips64"), all(rustix_use_experimental_asm, target_arch = "mips64r6"), target_arch = "x86", all(target_arch = "x86_64", target_pointer_width = "64")))))))'.dependencies.libc_errno]
256 version = "0.3.8"
257 default-features = false
258 package = "errno"
259
260 [target.'cfg(any(target_os = "android", target_os = "linux"))'.dependencies.once_cell]
261 version = "1.5.2"
262 optional = true
263
264 [target."cfg(windows)".dependencies.libc_errno]
265 version = "0.3.8"
266 default-features = false
267 package = "errno"
268
269 [target."cfg(windows)".dependencies.windows-sys]
270 version = "0.52.0"
271 features = [
272 "Win32_Foundation",
273 "Win32_Networking_WinSock",
274 "Win32_NetworkManagement_IpHelper",
275 "Win32_System_Threading",
276 ]
277
278 [lints.rust.unexpected_cfgs]
279 level = "warn"
280 priority = 0
281 check-cfg = [
282 "cfg(alloc_c_string)",
283 "cfg(alloc_ffi)",
284 "cfg(apple)",
285 "cfg(asm_experimental_arch)",
286 "cfg(bsd)",
287 "cfg(core_c_str)",
288 "cfg(core_ffi_c)",
289 "cfg(core_intrinsics)",
290 "cfg(criterion)",
291 "cfg(document_experimental_runtime_api)",
292 "cfg(fix_y2038)",
293 "cfg(freebsdlike)",
294 "cfg(libc)",
295 "cfg(linux_kernel)",
296 "cfg(linux_like)",
297 "cfg(linux_raw)",
298 "cfg(netbsdlike)",
299 "cfg(rustc_attrs)",
300 "cfg(solarish)",
301 "cfg(staged_api)",
302 "cfg(static_assertions)",
303 "cfg(thumb_mode)",
304 "cfg(wasi)",
305 "cfg(wasi_ext)",
306 'cfg(target_arch, values("xtensa"))',
307 ]