@@ -26,6 +26,15 @@ keywords = ["rpc", "grpc", "async", "futures", "protobuf"]
26
26
default = [" transport" , " codegen" , " prost" ]
27
27
codegen = [" async-trait" ]
28
28
transport = [
29
+ " hyper/default" ,
30
+ " hyper/stream" ,
31
+ " tokio" ,
32
+ " tower" ,
33
+ " tower-balance" ,
34
+ " tower-load" ,
35
+ " tracing-futures" ,
36
+ ]
37
+ client = [
29
38
" hyper" ,
30
39
" tokio" ,
31
40
" tower" ,
@@ -64,8 +73,8 @@ prost-derive = { version = "0.6", optional = true }
64
73
async-trait = { version = " 0.1.13" , optional = true }
65
74
66
75
# transport
67
- hyper = { version = " 0.13.4" , features = [ " stream " ] , optional = true }
68
- tokio = { version = " 0.2.13" , features = [ " tcp " ], optional = true }
76
+ hyper = { version = " 0.13.4" , default- features = false , optional = true }
77
+ tokio = { version = " 0.2.13" , optional = true }
69
78
tower = { version = " 0.3" , optional = true }
70
79
tower-make = { version = " 0.3" , features = [" connect" ] }
71
80
tower-balance = { version = " 0.3" , optional = true }
@@ -76,6 +85,9 @@ tracing-futures = { version = "0.2", optional = true }
76
85
tokio-rustls = { version = " 0.14" , optional = true }
77
86
rustls-native-certs = { version = " 0.4" , optional = true }
78
87
88
+ [target .'cfg(target_arch = "wasm32")' .dependencies ]
89
+ wasm-bindgen-futures = " 0.4.18"
90
+
79
91
[dev-dependencies ]
80
92
tokio = { version = " 0.2" , features = [" rt-core" , " macros" ] }
81
93
static_assertions = " 1.0"
0 commit comments