@@ -18,15 +18,15 @@ rustdoc-args = ["--cfg", "docsrs"]
18
18
wasm-bindgen = " 0.2"
19
19
web-sys = " 0.3"
20
20
js-sys = " 0.3"
21
- gloo-utils = { version = " 0.1" , path = " ../utils" , features = [" serde" ] }
22
21
23
22
wasm-bindgen-futures = " 0.4"
24
23
futures-core = { version = " 0.3" , optional = true }
25
24
futures-sink = { version = " 0.3" , optional = true }
26
25
27
26
thiserror = " 1.0"
28
27
29
- serde = { version = " 1.0" , features = [" derive" ], optional = true }
28
+ gloo-utils = { version = " 0.1" , path = " ../utils" , default-features = false , optional = true }
29
+ serde = { version = " 1.0" , optional = true }
30
30
serde_json = { version = " 1.0" , optional = true }
31
31
32
32
futures-channel = { version = " 0.3" , optional = true }
@@ -35,12 +35,13 @@ pin-project = { version = "1.0", optional = true }
35
35
[dev-dependencies ]
36
36
wasm-bindgen-test = " 0.3"
37
37
futures = " 0.3"
38
+ serde = { version = " 1.0" , features = [" derive" ] }
38
39
39
40
[features ]
40
41
default = [" json" , " websocket" , " http" , " eventsource" ]
41
42
42
43
# Enables `.json()` on `Response`
43
- json = [" serde" , " serde_json" ]
44
+ json = [" serde" , " serde_json" , " gloo-utils/serde " ]
44
45
# Enables the WebSocket API
45
46
websocket = [
46
47
' web-sys/WebSocket' ,
@@ -52,11 +53,9 @@ websocket = [
52
53
' web-sys/BinaryType' ,
53
54
' web-sys/Blob' ,
54
55
" futures-channel" ,
55
- " pin-project" ,
56
56
" futures-core" ,
57
57
" futures-sink" ,
58
- " wasm-bindgen/serde-serialize" ,
59
- " serde" ,
58
+ " pin-project" ,
60
59
]
61
60
# Enables the HTTP API
62
61
http = [
0 commit comments