Skip to content

Commit 962d366

Browse files
committed
added surf feature
1 parent cd13a46 commit 962d366

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

influxdb/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ h1-client = ["surf/h1-client"]
3333
h1-client-rustls = ["surf/h1-client-rustls"]
3434
hyper-client = ["surf/hyper-client"]
3535
wasm-client = ["surf/wasm-client"]
36-
default = ["use-serde", "hyper-client"]
36+
default = ["use-serde", "hyper-client", "surf"]
3737
derive = ["influxdb_derive"]
38+
surf = []
3839

3940
[dev-dependencies]
4041
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"] }

influxdb/src/client/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ impl Client {
8888
}
8989

9090
/// Allows creation of custom http clients
91+
#[cfg(feature = "surf")]
9192
pub fn with_http_client<T: HttpClient>(mut self, http_client: T) -> Self {
9293
self.client = SurfClient::with_http_client(http_client);
9394
self

0 commit comments

Comments
 (0)