smol/Cargo.toml

58 lines
1.4 KiB
TOML

[package]
name = "smol"
version = "0.1.4"
authors = ["Stjepan Glavina <stjepang@gmail.com>"]
edition = "2018"
description = "A small and fast async runtime"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/stjepang/smol"
homepage = "https://github.com/stjepang/smol"
documentation = "https://docs.rs/smol"
keywords = ["async", "await", "future", "io", "networking"]
categories = ["asynchronous", "concurrency", "network-programming"]
readme = "README.md"
autoexamples = false
[features]
# Optional feature for seamless integration with crates depending on tokio.
# It creates a global tokio runtime and sets up its context inside smol.
#
# Enable the feature as follows:
# ```
# [dependencies]
# smol = { version = "0.1", features = ["tokio02"] }
# ```
tokio02 = ["tokio"]
[dependencies]
async-task = "3.0.0"
crossbeam = "0.7.3"
futures = { version = "0.3.4", default-features = false, features = ["std"] }
once_cell = "1.3.1"
piper = "0.1.1"
scoped-tls-hkt = "0.1.2"
slab = "0.4.2"
socket2 = { version = "0.3.12", features = ["pair", "unix"] }
[dependencies.tokio]
version = "0.2.19"
default-features = false
features = ["rt-threaded"]
optional = true
[target.'cfg(unix)'.dependencies]
nix = "0.17.0"
[target.'cfg(windows)'.dependencies]
wepoll-binding = "2.0.0"
[dev-dependencies]
num_cpus = "1.13.0"
tempfile = "3.1.0"
[workspace]
members = [
".",
"examples",
]