2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00
async-std/Cargo.toml

114 lines
3.1 KiB
TOML
Raw Normal View History

2019-08-08 12:44:48 +00:00
[package]
name = "async-std"
2022-06-18 17:24:06 +00:00
version = "1.12.0"
2019-08-16 14:54:39 +00:00
authors = [
"Stjepan Glavina <stjepang@gmail.com>",
"Yoshua Wuyts <yoshuawuyts@gmail.com>",
2020-04-26 18:49:33 +00:00
"Friedel Ziegelmayer <me@dignifiedquire.com>",
"Contributors to async-std",
2019-08-16 14:54:39 +00:00
]
2019-08-08 12:44:48 +00:00
edition = "2018"
license = "Apache-2.0/MIT"
2019-08-15 10:57:20 +00:00
repository = "https://github.com/async-rs/async-std"
2019-10-25 21:14:57 +00:00
homepage = "https://async.rs"
2019-08-12 18:29:32 +00:00
description = "Async version of the Rust standard library"
keywords = ["async", "await", "future", "std", "task"]
categories = ["asynchronous", "concurrency", "network-programming"]
2019-08-08 12:44:48 +00:00
[package.metadata.docs.rs]
2019-08-12 17:50:30 +00:00
features = ["docs"]
2019-08-16 15:30:56 +00:00
rustdoc-args = ["--cfg", "feature=\"docs\""]
2019-08-08 12:44:48 +00:00
[features]
default = [
"std",
"async-global-executor",
"async-io",
"futures-lite",
"kv-log-macro",
"log",
"pin-project-lite",
"gloo-timers",
]
docs = ["attributes", "unstable", "default"]
unstable = [
"std",
"async-io",
"async-process",
]
attributes = ["async-attributes"]
std = [
"alloc",
"crossbeam-utils",
"futures-core/std",
"futures-io",
"memchr",
"once_cell",
"pin-utils",
"slab",
2020-04-28 18:41:04 +00:00
"wasm-bindgen-futures",
"futures-channel",
"async-channel",
"async-lock",
]
alloc = [
"futures-core/alloc",
2020-01-16 12:01:47 +00:00
"pin-project-lite",
2020-01-16 02:18:09 +00:00
]
tokio1 = ["async-global-executor/tokio"]
tokio02 = ["async-global-executor/tokio02"]
tokio03 = ["async-global-executor/tokio03"]
2019-08-08 12:44:48 +00:00
[dependencies]
async-attributes = { version = "1.1.1", optional = true }
async-lock = { version = "2.3.0", optional = true }
2020-10-20 12:45:37 +00:00
crossbeam-utils = { version = "0.8.0", optional = true }
2020-03-08 11:46:26 +00:00
futures-core = { version = "0.3.4", optional = true, default-features = false }
futures-io = { version = "0.3.4", optional = true }
2020-06-27 12:23:54 +00:00
kv-log-macro = { version = "1.0.6", optional = true }
log = { version = "0.4.8", features = ["kv_unstable"], optional = true }
2020-03-08 11:46:26 +00:00
memchr = { version = "2.3.3", optional = true }
once_cell = { version = "1.3.1", optional = true }
2020-11-13 20:28:27 +00:00
pin-project-lite = { version = "0.2.0", optional = true }
pin-utils = { version = "0.1.0-alpha.4", optional = true }
slab = { version = "0.4.2", optional = true }
async-channel = { version = "1.5.1", optional = true }
2020-04-26 16:00:00 +00:00
# dev dependency, but they are not allowed to be optional :/
2020-10-20 12:45:37 +00:00
surf = { version = "2.0.0", optional = true }
2020-05-07 21:20:44 +00:00
2020-04-26 16:00:00 +00:00
[target.'cfg(not(target_os = "unknown"))'.dependencies]
async-global-executor = { version = "2.0.0", optional = true, features = ["async-io"] }
async-io = { version = "1.0.1", optional = true }
futures-lite = { version = "1.0.0", optional = true }
2020-12-01 15:10:51 +00:00
async-process = { version = "1.0.1", optional = true }
2019-08-08 12:44:48 +00:00
2020-04-26 16:00:00 +00:00
[target.'cfg(target_arch = "wasm32")'.dependencies]
gloo-timers = { version = "0.2.1", features = ["futures"], optional = true }
2020-04-28 18:41:04 +00:00
wasm-bindgen-futures = { version = "0.4.10", optional = true }
futures-channel = { version = "0.3.4", optional = true }
2020-04-26 16:00:00 +00:00
[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
wasm-bindgen-test = "0.3.10"
getrandom = { version = "0.2.0", features = ["js"] }
2020-04-26 16:00:00 +00:00
2019-08-08 12:44:48 +00:00
[dev-dependencies]
femme = "2.1.1"
rand = "0.8.0"
tempfile = "3.1.0"
2020-03-08 11:46:26 +00:00
futures = "0.3.4"
rand_xorshift = "0.3.0"
[[test]]
name = "stream"
required-features = ["unstable"]
[[example]]
name = "tcp-ipv4-and-6-echo"
required-features = ["unstable"]
2020-05-07 21:20:44 +00:00
[[example]]
name = "surf-web"
2020-06-03 10:09:33 +00:00
required-features = ["surf"]