[package]
edition = "2021"
name = "system-interface"
version = "0.27.3"
authors = ["Dan Gohman <dev@sunfishcode.online>"]
build = "build.rs"
exclude = ["/.github"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Extensions to the Rust standard library"
readme = "README.md"
keywords = [
"api",
"network",
"file",
]
categories = [
"filesystem",
"network-programming",
"os",
]
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
repository = "https://github.com/bytecodealliance/system-interface"
[lib]
name = "system_interface"
path = "src/lib.rs"
[[test]]
name = "allocate"
path = "tests/allocate.rs"
[[test]]
name = "append"
path = "tests/append.rs"
[[test]]
name = "fd_flags"
path = "tests/fd_flags.rs"
[[test]]
name = "is_read_write"
path = "tests/is_read_write.rs"
[[test]]
name = "live_rename"
path = "tests/live_rename.rs"
[[test]]
name = "peek"
path = "tests/peek.rs"
[[test]]
name = "read_ready"
path = "tests/read_ready.rs"
[[test]]
name = "read_to_end"
path = "tests/read_to_end.rs"
[[test]]
name = "vectored_at"
path = "tests/vectored_at.rs"
[dependencies.async-std]
version = "1.13.0"
features = ["io_safety"]
optional = true
[dependencies.bitflags]
version = "2.2.3"
[dependencies.cap-async-std]
version = "3.0.0"
optional = true
[dependencies.cap-std]
version = "3.0.0"
optional = true
[dependencies.char-device]
version = "0.16.0"
optional = true
[dependencies.io-lifetimes]
version = "2.0.0"
default-features = false
[dependencies.os_pipe]
version = "1.0.0"
features = ["io_safety"]
optional = true
[dependencies.socketpair]
version = "0.19.0"
optional = true
[dependencies.ssh2]
version = "0.9.1"
optional = true
[dev-dependencies.cap-fs-ext]
version = "3.0.0"
[dev-dependencies.cap-std]
version = "3.0.0"
[dev-dependencies.cap-tempfile]
version = "3.0.0"
[dev-dependencies.tempfile]
version = "3.2.0"
[features]
cap_async_std_impls = [
"async-std",
"cap-async-std",
"io-lifetimes/async-std",
]
cap_async_std_impls_fs_utf8 = [
"async-std",
"cap-async-std/fs_utf8",
]
cap_std_impls = ["cap-std"]
cap_std_impls_fs_utf8 = ["cap-std/fs_utf8"]
default = []
use_os_pipe = [
"os_pipe",
"io-lifetimes/os_pipe",
]
[target."cfg(not(windows))".dependencies.rustix]
version = "0.38.0"
features = [
"fs",
"net",
]
[target."cfg(windows)".dependencies.cap-fs-ext]
version = "3.0.0"
[target."cfg(windows)".dependencies.cap-std]
version = "3.0.0"
[target."cfg(windows)".dependencies.fd-lock]
version = "4.0.0"
[target."cfg(windows)".dependencies.windows-sys]
version = ">=0.52, <=0.59"
features = [
"Win32_Foundation",
"Win32_Networking_WinSock",
"Win32_Storage_FileSystem",
"Win32_System_Pipes",
]
[target."cfg(windows)".dependencies.winx]
version = "0.36.0"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(racy_asserts)",
"cfg(unix_socket_peek)",
'cfg(feature, values("socket2"))',
]