• Home
  • Raw
  • Download

Lines Matching +full:use +full:- +full:libc

8 description = "Safe Rust bindings to POSIX/Unix/Linux/Winsock2-like syscalls"
10 license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
14 categories = ["os::unix-apis", "date-and-time", "filesystem", "network-programming"]
16 rust-version = "1.48"
18 [build-dependencies]
23 itoa = { version = "1.0.1", default-features = false, optional = true }
24 io-lifetimes = { version = "1.0.0", default-features = false, features = ["close"], optional = true…
26 # Special dependencies used in rustc-dep-of-std mode.
27 core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }
28 alloc = { version = "1.0.0", optional = true, package = "rustc-std-workspace-alloc" }
35 # Dependencies for platforms where linux_raw is supported, in addition to libc:
38 # addition to the libc backend. The linux_raw backend is used by default. The
39 # libc backend can be selected via adding `--cfg=rustix_use_libc` to
40 # `RUSTFLAGS` or enabling the `use-libc` cargo feature.
42 linux-raw-sys = { version = "0.1.2", default-features = false, features = ["general", "errno", "ioc…
43 libc_errno = { package = "errno", version = "0.3.0", default-features = false, optional = true }
44 libc = { version = "0.2.133", features = ["extra_traits"], optional = true }
46 # Dependencies for platforms where only libc is supported:
48 # On all other Unix-family platforms, and under Miri, we always use the libc
51 libc_errno = { package = "errno", version = "0.3.0", default-features = false }
52 libc = { version = "0.2.133", features = ["extra_traits"] }
54 # Additional dependencies for Linux with the libc backend:
56 # Some syscalls do not have libc wrappers, such as in `io_uring`. For these,
57 # the libc backend uses the linux-raw-sys ABI and `libc::syscall`.
59 linux-raw-sys = { version = "0.1.2", default-features = false, features = ["general", "no_std"] }
61 # For the libc backend on Windows, use the Winsock2 API in windows-sys.
62 [target.'cfg(windows)'.dependencies.windows-sys]
71 [dev-dependencies]
73 libc = "0.2.133"
74 libc_errno = { package = "errno", version = "0.3.0", default-features = false }
75 io-lifetimes = { version = "1.0.0", default-features = false, features = ["close"] }
79 [target.'cfg(windows)'.dev-dependencies]
83 features = ["all-apis"]
84 rustdoc-args = ["--cfg", "doc_cfg"]
86 "x86_64-unknown-linux-gnu",
87 "i686-unknown-linux-gnu",
88 "x86_64-apple-darwin",
89 "x86_64-pc-windows-msvc",
94 # By default, use `std` and use libc for aux values.
97 # efficiently on Linux from anywhere other than libc. We can do it, but most
98 # users are better served by just using libc for this.
99 default = ["std", "use-libc-auxv"]
101 # This enables use of std. Disabling this enables `#![no_std], and requires
103 std = ["io-lifetimes"]
106 rustc-dep-of-std = [
110 "linux-raw-sys/rustc-dep-of-std",
111 "bitflags/rustc-dep-of-std",
114 # Enable this to request the libc backend.
115 use-libc = ["libc_errno", "libc"]
154 all-apis = [
169 # When using the linux_raw backend, and not using Mustang, should we use libc
172 use-libc-auxv = ["libc"]
174 # Expose io-lifetimes' features for third-party crate impls.
177 #async-std = ["io-lifetimes/async-std"]
178 #tokio = ["io-lifetimes/tokio"]
179 os_pipe = ["io-lifetimes/os_pipe"]
180 #socket2 = ["io-lifetimes/socket2"]
181 #mio = ["io-lifetimes/mio"]
182 fs-err = ["io-lifetimes/fs-err"]
183 #all-impls = ["async-std", "tokio", "os_pipe", "socket2", "mio", "fs-err"]
184 all-impls = ["os_pipe", "fs-err"]