1[package]
2name = "async-std"
3version = "1.13.1"
4authors = [
5 "Stjepan Glavina <stjepang@gmail.com>",
6 "Yoshua Wuyts <yoshuawuyts@gmail.com>",
7 "Friedel Ziegelmayer <me@dignifiedquire.com>",
8 "Contributors to async-std",
9]
10edition = "2018"
11rust-version = "1.63"
12license = "Apache-2.0 OR MIT"
13repository = "https://github.com/async-rs/async-std"
14homepage = "https://async.rs"
15description = "Deprecated in favor of `smol` - Async version of the Rust standard library"
16keywords = ["async", "await", "future", "std", "task"]
17categories = ["asynchronous", "concurrency", "network-programming"]
18
19[package.metadata.docs.rs]
20features = ["docs"]
21rustdoc-args = ["--cfg", "feature=\"docs\""]
22
23[features]
24default = [
25 "std",
26 "async-global-executor",
27 "async-io",
28 "futures-lite",
29 "kv-log-macro",
30 "log",
31 "pin-project-lite",
32 "gloo-timers",
33]
34docs = ["attributes", "unstable", "default"]
35unstable = [
36 "std",
37 "async-io",
38 "async-process",
39]
40attributes = ["async-attributes"]
41std = [
42 "alloc",
43 "crossbeam-utils",
44 "futures-core/std",
45 "futures-io",
46 "memchr",
47 "once_cell",
48 "pin-utils",
49 "slab",
50 "wasm-bindgen-futures",
51 "futures-channel",
52 "async-channel",
53 "async-lock",
54]
55alloc = [
56 "futures-core/alloc",
57 "pin-project-lite",
58]
59tokio1 = ["async-global-executor/tokio"]
60tokio02 = ["async-global-executor/tokio02"]
61tokio03 = ["async-global-executor/tokio03"]
62io_safety = []
63
64[dependencies]
65async-attributes = { version = "1.1.2", optional = true }
66async-lock = { version = "3.1.0", optional = true }
67crossbeam-utils = { version = "0.8.0", optional = true }
68futures-core = { version = "0.3.4", optional = true, default-features = false }
69futures-io = { version = "0.3.4", optional = true }
70kv-log-macro = { version = "1.0.6", optional = true }
71log = { version = "0.4.8", features = ["kv_unstable"], optional = true }
72memchr = { version = "2.3.3", optional = true }
73once_cell = { version = "1.3.1", optional = true }
74pin-project-lite = { version = "0.2.0", optional = true }
75pin-utils = { version = "0.1.0-alpha.4", optional = true }
76slab = { version = "0.4.2", optional = true }
77async-channel = { version = "1.8.0", optional = true }
78
79# dev dependency, but they are not allowed to be optional :/
80surf = { version = "2.0.0", optional = true }
81
82
83[target.'cfg(not(target_os = "unknown"))'.dependencies]
84async-global-executor = { version = "2.4.0", optional = true, features = ["async-io"] }
85async-io = { version = "2.2.0", optional = true }
86futures-lite = { version = "2.0.0", optional = true }
87async-process = { version = "2.0.0", optional = true }
88
89[target.'cfg(target_arch = "wasm32")'.dependencies]
90gloo-timers = { version = "0.3.0", features = ["futures"], optional = true }
91wasm-bindgen-futures = { version = "0.4.10", optional = true }
92futures-channel = { version = "0.3.4", optional = true }
93
94[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
95wasm-bindgen-test = "0.3.10"
96getrandom = { version = "0.2.0", features = ["js"] }
97
98[dev-dependencies]
99femme = "2.1.1"
100rand = "0.8.0"
101tempfile = "3.1.0"
102futures = "0.3.4"
103rand_xorshift = "0.3.0"
104
105[[test]]
106name = "stream"
107required-features = ["unstable"]
108
109[[example]]
110name = "tcp-ipv4-and-6-echo"
111required-features = ["unstable"]
112
113[[example]]
114name = "surf-web"
115required-features = ["surf"]
116