[package]
name = "io-extras"
version = "0.11.1"
description = "File/socket handle/descriptor utilities"
authors = ["Dan Gohman <dev@sunfishcode.online>"]
edition = "2018"
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
keywords = ["api", "io", "stream"]
categories = ["os", "rust-patterns"]
repository = "https://github.com/sunfishcode/io-extras"
exclude = ["/.github"]
[build-dependencies]
rustc_version = "0.4.0"
[dependencies]
io-lifetimes = { version = "0.3.3", default-features = false }
async-std = { version = "1.9.0", features = ["unstable"], optional = true }
tokio = { version = "1.6.0", features = ["io-std", "fs", "net", "process"], optional = true }
os_pipe = { version = "0.9.2", optional = true }
socket2 = { version = "0.4.0", optional = true }
mio = { version = "0.7.11", optional = true }
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3.9", features = [
"consoleapi",
"handleapi",
"processenv",
"std",
"winbase",
"winerror",
] }
[dev-dependencies]
os_pipe = "0.9.2"
[features]
default = []
use_mio_net = ["mio", "mio/net", "io-lifetimes/mio"]
use_mio_os_ext = ["mio", "mio/os-ext", "io-lifetimes/mio"]
use_async_std = ["async-std", "io-lifetimes/async-std"]
use_tokio = ["tokio", "io-lifetimes/tokio"]
use_socket2 = ["socket2", "io-lifetimes/socket2"]
use_os_pipe = ["os_pipe", "io-lifetimes/os_pipe"]