@@ -4,6 +4,7 @@ version = "1.5.0"
4
4
authors = [
5
5
" Stjepan Glavina <[email protected] >" ,
6
6
" Yoshua Wuyts <[email protected] >" ,
7
+ " Friedel Ziegelmayer <[email protected] >" ,
7
8
" Contributors to async-std" ,
8
9
]
9
10
edition = " 2018"
@@ -24,19 +25,13 @@ rustdoc-args = ["--cfg", "feature=\"docs\""]
24
25
default = [
25
26
" std" ,
26
27
" async-task" ,
27
- " crossbeam-channel" ,
28
- " crossbeam-deque" ,
29
- " crossbeam-queue" ,
30
- " futures-timer" ,
31
28
" kv-log-macro" ,
32
29
" log" ,
33
- " mio" ,
34
- " mio-uds" ,
35
30
" num_cpus" ,
36
31
" pin-project-lite" ,
37
32
]
38
33
docs = [" attributes" , " unstable" , " default" ]
39
- unstable = [" std" , " broadcaster" , " futures-timer " ]
34
+ unstable = [" std" , " broadcaster" ]
40
35
attributes = [" async-attributes" ]
41
36
std = [
42
37
" alloc" ,
@@ -47,6 +42,10 @@ std = [
47
42
" once_cell" ,
48
43
" pin-utils" ,
49
44
" slab" ,
45
+ " smol" ,
46
+ " wasm-timer" ,
47
+ " wasm-bindgen-futures" ,
48
+ " futures-channel" ,
50
49
]
51
50
alloc = [
52
51
" futures-core/alloc" ,
@@ -55,32 +54,38 @@ alloc = [
55
54
56
55
[dependencies ]
57
56
async-attributes = { version = " 1.1.1" , optional = true }
58
- async-task = { version = " 1.3.1 " , optional = true }
57
+ async-task = { version = " 3.0.0 " , optional = true }
59
58
broadcaster = { version = " 1.0.0" , optional = true }
60
- crossbeam-channel = { version = " 0.4.2" , optional = true }
61
- crossbeam-deque = { version = " 0.7.3" , optional = true }
62
- crossbeam-queue = { version = " 0.2.0" , optional = true }
63
59
crossbeam-utils = { version = " 0.7.2" , optional = true }
64
60
futures-core = { version = " 0.3.4" , optional = true , default-features = false }
65
61
futures-io = { version = " 0.3.4" , optional = true }
66
- futures-timer = { version = " 3.0.2" , optional = true }
67
62
kv-log-macro = { version = " 1.0.4" , optional = true }
68
63
log = { version = " 0.4.8" , features = [" kv_unstable" ], optional = true }
69
64
memchr = { version = " 2.3.3" , optional = true }
70
- mio = { version = " 0.6.19" , optional = true }
71
- mio-uds = { version = " 0.6.7" , optional = true }
72
65
num_cpus = { version = " 1.12.0" , optional = true }
73
66
once_cell = { version = " 1.3.1" , optional = true }
74
67
pin-project-lite = { version = " 0.1.4" , optional = true }
75
68
pin-utils = { version = " 0.1.0-alpha.4" , optional = true }
76
69
slab = { version = " 0.4.2" , optional = true }
77
70
71
+ [target .'cfg(not(target_os = "unknown"))' .dependencies ]
72
+ smol = { version = " 0.1.1" , optional = true }
73
+
74
+ [target .'cfg(target_arch = "wasm32")' .dependencies ]
75
+ wasm-timer = { version = " 0.2.4" , optional = true }
76
+ wasm-bindgen-futures = { version = " 0.4.10" , optional = true }
77
+ futures-channel = { version = " 0.3.4" , optional = true }
78
+
79
+ [target .'cfg(target_arch = "wasm32")' .dev-dependencies ]
80
+ wasm-bindgen-test = " 0.3.10"
81
+
78
82
[dev-dependencies ]
79
83
femme = " 1.3.0"
80
84
rand = " 0.7.3"
81
85
surf = " 1.0.3"
82
86
tempdir = " 0.3.7"
83
87
futures = " 0.3.4"
88
+ rand_xorshift = " 0.2.0"
84
89
85
90
[[test ]]
86
91
name = " stream"
0 commit comments