mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-06 00:00:10 +02:00
138 lines
3.4 KiB
TOML
138 lines
3.4 KiB
TOML
[package]
|
|
name = "tokio"
|
|
# When releasing to crates.io:
|
|
# - Remove path dependencies
|
|
# - Update html_root_url.
|
|
# - Update doc url
|
|
# - Cargo.toml
|
|
# - README.md
|
|
# - Update CHANGELOG.md.
|
|
# - Create "v0.2.x" git tag.
|
|
version = "0.2.0-alpha.6"
|
|
edition = "2018"
|
|
authors = ["Tokio Contributors <[email protected]>"]
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
documentation = "https://docs.rs/tokio/0.2.0-alpha.6/tokio/"
|
|
repository = "https://github.com/tokio-rs/tokio"
|
|
homepage = "https://tokio.rs"
|
|
description = """
|
|
An event-driven, non-blocking I/O platform for writing asynchronous I/O
|
|
backed applications.
|
|
"""
|
|
categories = ["asynchronous", "network-programming"]
|
|
keywords = ["io", "async", "non-blocking", "futures"]
|
|
|
|
[features]
|
|
default = [
|
|
"blocking",
|
|
"fs",
|
|
"io",
|
|
"net-full",
|
|
"process",
|
|
"rt-full",
|
|
"signal",
|
|
"sync",
|
|
"timer",
|
|
]
|
|
|
|
blocking = []
|
|
fs = ["blocking"]
|
|
io-traits = ["bytes", "iovec"]
|
|
io-util = ["io-traits", "pin-project", "memchr"]
|
|
io = ["io-traits", "io-util"]
|
|
macros = ["tokio-macros"]
|
|
net-full = ["tcp", "udp", "uds"]
|
|
net-driver = ["mio", "blocking", "lazy_static"]
|
|
rt-current-thread = [
|
|
"crossbeam-channel",
|
|
"timer",
|
|
]
|
|
rt-full = [
|
|
"macros",
|
|
"num_cpus",
|
|
"net-full",
|
|
"rt-current-thread",
|
|
"sync",
|
|
"timer",
|
|
]
|
|
signal = [
|
|
"lazy_static",
|
|
"libc",
|
|
"mio-uds",
|
|
"net-driver",
|
|
"signal-hook-registry"
|
|
]
|
|
sync = ["fnv"]
|
|
tcp = ["io", "net-driver"]
|
|
timer = ["slab"]
|
|
udp = ["io", "net-driver"]
|
|
uds = ["io", "net-driver", "mio-uds", "libc"]
|
|
process = [
|
|
"io",
|
|
"libc",
|
|
"mio-named-pipes",
|
|
"signal",
|
|
"winapi/consoleapi",
|
|
"winapi/minwindef",
|
|
"winapi/threadpoollegacyapiset",
|
|
"winapi/winerror",
|
|
]
|
|
|
|
[dependencies]
|
|
tokio-macros = { version = "=0.2.0-alpha.6", optional = true, path = "../tokio-macros" }
|
|
|
|
futures-core-preview = "=0.3.0-alpha.19"
|
|
futures-sink-preview = "=0.3.0-alpha.19"
|
|
futures-util-preview = { version = "=0.3.0-alpha.19", features = ["sink", "channel"] }
|
|
|
|
# Everything else is optional...
|
|
bytes = { version = "0.4", optional = true }
|
|
crossbeam-channel = { version = "0.3.8", optional = true }
|
|
fnv = { version = "1.0.6", optional = true }
|
|
iovec = { version = "0.1", optional = true }
|
|
lazy_static = { version = "1.0.2", optional = true }
|
|
memchr = { version = "2.2", optional = true }
|
|
mio = { version = "0.6.14", optional = true }
|
|
num_cpus = { version = "1.8.0", optional = true }
|
|
pin-project = { version = "0.4", optional = true }
|
|
# Backs `DelayQueue`
|
|
slab = { version = "0.4.1", optional = true }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
mio-uds = { version = "0.6.5", optional = true }
|
|
libc = { version = "0.2.42", optional = true }
|
|
signal-hook-registry = { version = "1.1.1", optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
mio-named-pipes = { version = "0.1.6", optional = true }
|
|
|
|
[target.'cfg(windows)'.dependencies.winapi]
|
|
version = "0.3.8"
|
|
default-features = false
|
|
optional = true
|
|
|
|
[dev-dependencies]
|
|
tokio-test = { version = "=0.2.0-alpha.6", path = "../tokio-test" }
|
|
tokio-util = { version = "=0.2.0-alpha.6", path = "../tokio-util" }
|
|
|
|
futures-preview = { version = "=0.3.0-alpha.19", features = ["async-await"] }
|
|
env_logger = { version = "0.6", default-features = false }
|
|
flate2 = { version = "1", features = ["tokio"] }
|
|
http = "0.1"
|
|
httparse = "1.0"
|
|
libc = "0.2"
|
|
loom = { version = "0.2.12", features = ["futures", "checkpoint"] }
|
|
num_cpus = "1.0"
|
|
rand = "0.7.2"
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
tempfile = "3.1.0"
|
|
time = "0.1"
|
|
|
|
# sharded slab tests
|
|
proptest = "0.9.4"
|
|
|
|
[package.metadata.docs.rs]
|
|
all-features = true
|