You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11-1Lines changed: 11 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
### Added
11
11
12
-
- reqwest-based http client (enabled by default)
12
+
## [0.5.0] - 2021-11-04
13
+
14
+
### Added
15
+
16
+
- Reqwest client for Tokio 1.0 support
17
+
- New client constructor `with_http_client` ([@nshaaban-cPacket](https://github.com/nshaaban-cPacket) in [#94](https://github.com/influxdb-rs/influxdb-rust/pull/94))
18
+
19
+
### Changed
20
+
21
+
- default client is the new reqwest client
13
22
- deprecate `<dyn Query>::raw_read_query` in favour of `ReadQuery::new`
23
+
-`Client::query` now accepts both owned and borrowed queries as argument
Copy file name to clipboardExpand all lines: influxdb/src/lib.rs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@
20
20
//! Add the following to your `Cargo.toml`
21
21
//!
22
22
//! ```toml
23
-
//! influxdb = { version = "0.4.0", features = ["derive"] }
23
+
//! influxdb = { version = "0.5.0", features = ["derive"] }
24
24
//! ```
25
25
//!
26
26
//! For an example with using Serde deserialization, please refer to [serde_integration](crate::integrations::serde_integration)
@@ -73,33 +73,33 @@
73
73
//!
74
74
//! - **[hyper](https://github.com/hyperium/hyper)** (through reqwest, used by default), with [rustls](https://github.com/ctz/rustls)
75
75
//! ```toml
76
-
//! influxdb = { version = "0.4.0", features = ["derive"] }
76
+
//! influxdb = { version = "0.5.0", features = ["derive"] }
77
77
//! ```
78
78
//!
79
79
//! - **[hyper](https://github.com/hyperium/hyper)** (through reqwest), with native TLS (OpenSSL)
80
80
//! ```toml
81
-
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "reqwest-client"] }
81
+
//! influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "reqwest-client"] }
82
82
//! ```
83
83
//!
84
84
//! - **[hyper](https://github.com/hyperium/hyper)** (through surf), use this if you need tokio 0.2 compatibility
85
85
//! ```toml
86
-
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
86
+
//! influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
87
87
//! ```
88
88
//! - **[curl](https://github.com/alexcrichton/curl-rust)**, using [libcurl](https://curl.se/libcurl/)
89
89
//! ```toml
90
-
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
90
+
//! influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
91
91
//! ```
92
92
//! - **[async-h1](https://github.com/http-rs/async-h1)** with native TLS (OpenSSL)
93
93
//! ```toml
94
-
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
94
+
//! influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
95
95
//! ```
96
96
//! - **[async-h1](https://github.com/http-rs/async-h1)** with [rustls](https://github.com/ctz/rustls)
97
97
//! ```toml
98
-
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
98
+
//! influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
99
99
//! ```
100
100
//! - WebAssembly's `window.fetch`, via `web-sys` and **[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)**
101
101
//! ```toml
102
-
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
102
+
//! influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
0 commit comments