File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,10 @@ h1-client = ["surf/h1-client"]
33
33
h1-client-rustls = [" surf/h1-client-rustls" ]
34
34
hyper-client = [" surf/hyper-client" ]
35
35
wasm-client = [" surf/wasm-client" ]
36
- default = [" use-serde" , " hyper-client" ]
36
+ default = [" use-serde" , " hyper-client" , " surf " ]
37
37
derive = [" influxdb_derive" ]
38
+ surf = []
38
39
39
40
[dev-dependencies ]
40
41
async-std = { version = " 1.6.5" , features = [" attributes" ] }
41
- tokio = { version = " 0.2.22" , features = [" rt-threaded" , " macros" ] }
42
+ tokio = { version = " 0.2.22" , features = [" rt-threaded" , " macros" ] }
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ impl Client {
88
88
}
89
89
90
90
/// Allows creation of custom http clients
91
+ #[ cfg( feature = "surf" ) ]
91
92
pub fn with_http_client < T : HttpClient > ( mut self , http_client : T ) -> Self {
92
93
self . client = SurfClient :: with_http_client ( http_client) ;
93
94
self
You can’t perform that action at this time.
0 commit comments