| 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.34" |
| 17 |
authors = [ |
| 18 |
"Dan Gohman <[email protected]>", |
| 19 |
"Jakub Konka <[email protected]>", |
| 20 |
] |
| 21 |
include = [ |
| 22 |
"src", |
| 23 |
"build.rs", |
| 24 |
"Cargo.toml", |
| 25 |
"COPYRIGHT", |
| 26 |
"LICENSE*", |
| 27 |
"/*.md", |
| 28 |
"benches", |
| 29 |
] |
| 30 |
description = "Safe Rust bindings to POSIX/Unix/Linux/Winsock-like syscalls" |
| 31 |
documentation = "https://docs.rs/rustix" |
| 32 |
readme = "README.md" |
| 33 |
keywords = [ |
| 34 |
"api", |
| 35 |
"file", |
| 36 |
"network", |
| 37 |
"safe", |
| 38 |
"syscall", |
| 39 |
] |
| 40 |
categories = [ |
| 41 |
"os::unix-apis", |
| 42 |
"date-and-time", |
| 43 |
"filesystem", |
| 44 |
"network-programming", |
| 45 |
] |
| 46 |
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT" |
| 47 |
repository = "https://github.com/bytecodealliance/rustix" |
| 48 |
|
| 49 |
[package.metadata.docs.rs] |
| 50 |
features = ["all-apis"] |
| 51 |
rustdoc-args = [ |
| 52 |
"--cfg", |
| 53 |
"doc_cfg", |
| 54 |
] |
| 55 |
targets = [ |
| 56 |
"x86_64-unknown-linux-gnu", |
| 57 |
"i686-unknown-linux-gnu", |
| 58 |
"x86_64-apple-darwin", |
| 59 |
"x86_64-pc-windows-msvc", |
| 60 |
"x86_64-unknown-freebsd", |
| 61 |
"x86_64-unknown-openbsd", |
| 62 |
"x86_64-unknown-netbsd", |
| 63 |
"x86_64-unknown-dragonfly", |
| 64 |
"x86_64-unknown-illumos", |
| 65 |
"x86_64-unknown-redox", |
| 66 |
"x86_64-unknown-haiku", |
| 67 |
"wasm32-unknown-emscripten", |
| 68 |
"wasm32-wasi", |
| 69 |
] |
| 70 |
|
| 71 |
[[bench]] |
| 72 |
name = "mod" |
| 73 |
harness = false |
| 74 |
|
| 75 |
[dependencies.alloc] |
| 76 |
version = "1.0.0" |
| 77 |
optional = true |
| 78 |
package = "rustc-std-workspace-alloc" |
| 79 |
|
| 80 |
[dependencies.bitflags] |
| 81 |
version = "2.4.0" |
| 82 |
default-features = false |
| 83 |
|
| 84 |
[dependencies.compiler_builtins] |
| 85 |
version = "0.1.49" |
| 86 |
optional = true |
| 87 |
|
| 88 |
[dependencies.core] |
| 89 |
version = "1.0.0" |
| 90 |
optional = true |
| 91 |
package = "rustc-std-workspace-core" |
| 92 |
|
| 93 |
[dependencies.itoa] |
| 94 |
version = "1.0.1" |
| 95 |
optional = true |
| 96 |
default-features = false |
| 97 |
|
| 98 |
[dev-dependencies.flate2] |
| 99 |
version = "1.0" |
| 100 |
|
| 101 |
[dev-dependencies.libc] |
| 102 |
version = "0.2.153" |
| 103 |
|
| 104 |
[dev-dependencies.libc_errno] |
| 105 |
version = "0.3.8" |
| 106 |
default-features = false |
| 107 |
package = "errno" |
| 108 |
|
| 109 |
[dev-dependencies.memoffset] |
| 110 |
version = "0.9.0" |
| 111 |
|
| 112 |
[dev-dependencies.serial_test] |
| 113 |
version = "2.0.0" |
| 114 |
|
| 115 |
[dev-dependencies.static_assertions] |
| 116 |
version = "1.1.0" |
| 117 |
|
| 118 |
[dev-dependencies.tempfile] |
| 119 |
version = "3.5.0" |
| 120 |
|
| 121 |
[features] |
| 122 |
all-apis = [ |
| 123 |
"event", |
| 124 |
"fs", |
| 125 |
"io_uring", |
| 126 |
"mm", |
| 127 |
"mount", |
| 128 |
"net", |
| 129 |
"param", |
| 130 |
"pipe", |
| 131 |
"process", |
| 132 |
"procfs", |
| 133 |
"pty", |
| 134 |
"rand", |
| 135 |
"runtime", |
| 136 |
"shm", |
| 137 |
"stdio", |
| 138 |
"system", |
| 139 |
"termios", |
| 140 |
"thread", |
| 141 |
"time", |
| 142 |
] |
| 143 |
alloc = [] |
| 144 |
cc = [] |
| 145 |
default = [ |
| 146 |
"std", |
| 147 |
"use-libc-auxv", |
| 148 |
] |
| 149 |
event = [] |
| 150 |
fs = [] |
| 151 |
io_uring = [ |
| 152 |
"event", |
| 153 |
"fs", |
| 154 |
"net", |
| 155 |
"linux-raw-sys/io_uring", |
| 156 |
] |
| 157 |
libc-extra-traits = ["libc?/extra_traits"] |
| 158 |
linux_4_11 = [] |
| 159 |
linux_latest = ["linux_4_11"] |
| 160 |
mm = [] |
| 161 |
mount = [] |
| 162 |
net = [ |
| 163 |
"linux-raw-sys/net", |
| 164 |
"linux-raw-sys/netlink", |
| 165 |
"linux-raw-sys/if_ether", |
| 166 |
"linux-raw-sys/xdp", |
| 167 |
] |
| 168 |
param = ["fs"] |
| 169 |
pipe = [] |
| 170 |
process = ["linux-raw-sys/prctl"] |
| 171 |
procfs = [ |
| 172 |
"once_cell", |
| 173 |
"itoa", |
| 174 |
"fs", |
| 175 |
] |
| 176 |
pty = [ |
| 177 |
"itoa", |
| 178 |
"fs", |
| 179 |
] |
| 180 |
rand = [] |
| 181 |
runtime = ["linux-raw-sys/prctl"] |
| 182 |
rustc-dep-of-std = [ |
| 183 |
"dep:core", |
| 184 |
"dep:alloc", |
| 185 |
"dep:compiler_builtins", |
| 186 |
"linux-raw-sys/rustc-dep-of-std", |
| 187 |
"bitflags/rustc-dep-of-std", |
| 188 |
"compiler_builtins?/rustc-dep-of-std", |
| 189 |
] |
| 190 |
shm = ["fs"] |
| 191 |
std = [ |
| 192 |
"bitflags/std", |
| 193 |
"alloc", |
| 194 |
"libc?/std", |
| 195 |
"libc_errno?/std", |
| 196 |
"libc-extra-traits", |
| 197 |
] |
| 198 |
stdio = [] |
| 199 |
system = ["linux-raw-sys/system"] |
| 200 |
termios = [] |
| 201 |
thread = ["linux-raw-sys/prctl"] |
| 202 |
time = [] |
| 203 |
use-explicitly-provided-auxv = [] |
| 204 |
use-libc = [ |
| 205 |
"libc_errno", |
| 206 |
"libc", |
| 207 |
"libc-extra-traits", |
| 208 |
] |
| 209 |
use-libc-auxv = [] |
| 210 |
|
| 211 |
[target."cfg(all(any(target_os = \"android\", target_os = \"linux\"), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", 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 = \"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] |
| 212 |
version = "0.4.12" |
| 213 |
features = [ |
| 214 |
"general", |
| 215 |
"ioctl", |
| 216 |
"no_std", |
| 217 |
] |
| 218 |
default-features = false |
| 219 |
|
| 220 |
[target."cfg(all(criterion, not(any(target_os = \"emscripten\", target_os = \"wasi\"))))".dev-dependencies.criterion] |
| 221 |
version = "0.4" |
| 222 |
|
| 223 |
[target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", 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 = \"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] |
| 224 |
version = "0.2.153" |
| 225 |
optional = true |
| 226 |
default-features = false |
| 227 |
|
| 228 |
[target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", 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 = \"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] |
| 229 |
version = "0.3.8" |
| 230 |
optional = true |
| 231 |
default-features = false |
| 232 |
package = "errno" |
| 233 |
|
| 234 |
[target."cfg(all(not(rustix_use_libc), not(miri), target_os = \"linux\", target_endian = \"little\", 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 = \"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] |
| 235 |
version = "0.4.12" |
| 236 |
features = [ |
| 237 |
"general", |
| 238 |
"errno", |
| 239 |
"ioctl", |
| 240 |
"no_std", |
| 241 |
"elf", |
| 242 |
] |
| 243 |
default-features = false |
| 244 |
|
| 245 |
[target."cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", 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 = \"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] |
| 246 |
version = "0.2.153" |
| 247 |
default-features = false |
| 248 |
|
| 249 |
[target."cfg(all(not(windows), any(rustix_use_libc, miri, not(all(target_os = \"linux\", target_endian = \"little\", 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 = \"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] |
| 250 |
version = "0.3.8" |
| 251 |
default-features = false |
| 252 |
package = "errno" |
| 253 |
|
| 254 |
[target."cfg(any(target_os = \"android\", target_os = \"linux\"))".dependencies.once_cell] |
| 255 |
version = "1.5.2" |
| 256 |
optional = true |
| 257 |
|
| 258 |
[target."cfg(windows)".dependencies.libc_errno] |
| 259 |
version = "0.3.8" |
| 260 |
default-features = false |
| 261 |
package = "errno" |
| 262 |
|
| 263 |
[target."cfg(windows)".dependencies.windows-sys] |
| 264 |
version = "0.52.0" |
| 265 |
features = [ |
| 266 |
"Win32_Foundation", |
| 267 |
"Win32_Networking_WinSock", |
| 268 |
"Win32_NetworkManagement_IpHelper", |
| 269 |
"Win32_System_Threading", |
| 270 |
] |
| 271 |
|
| 272 |
[target."cfg(windows)".dev-dependencies.ctor] |
| 273 |
version = "0.2.0" |