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
+42-1
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
+
## [0.4.0] - 2021-03-08
11
+
12
+
### Fixed
13
+
14
+
- Fix deserialization of Series in case of no values ([@JEnoch](https://github.com/JEnoch) in [#75](https://github.com/Empty2k12/influxdb-rust/pull/75))
15
+
16
+
### Added
17
+
18
+
- implement `#[influxdb(tag)]` and `#[influxdb(ignore)]` ([@blasrodri](https://github.com/blasrodri) in [#81](https://github.com/Empty2k12/influxdb-rust/pull/81))
19
+
20
+
`#[tag]` is now `#[influxdb(tag)]` and fields can be ignored with `#[influxdb(ignore)]`
21
+
22
+
- Batch write support ([@sunng87](https://github.com/sunng87) in [#87](https://github.com/Empty2k12/influxdb-rust/pull/87))
23
+
24
+
Build a query containing mutliple rows to be inserted
25
+
```
26
+
let q0 = Timestamp::Hours(11)
27
+
.into_query("weather")
28
+
.add_field("temperature", 82)
29
+
.add_tag("location", "us-midwest");
30
+
31
+
let q1 = Timestamp::Hours(12)
32
+
.into_query("weather")
33
+
.add_field("temperature", 65)
34
+
.add_tag("location", "us-midwest");
35
+
36
+
let query = vec![q0, q1].build();
37
+
```
38
+
39
+
### Changed
40
+
41
+
- Assertion should consider case-insensitive keywords ([@rcastill](https://github.com/rcastill) in [#83](https://github.com/Empty2k12/influxdb-rust/pull/83))
42
+
43
+
`#[tag]` is now `#[influxdb(tag)]` and fields can be ignored with `#[influxdb(ignore)]`
44
+
45
+
- Add h1-client-rustls feature ([@JEnoch](https://github.com/JEnoch) in [#88](https://github.com/Empty2k12/influxdb-rust/pull/88))
46
+
47
+
Switch between multiple http backends as described in the [README.md](README.md#Choice-of-HTTP-backend)
48
+
49
+
10
50
## [0.3.0] - 2020-11-15
11
51
12
52
### Changed
@@ -120,7 +160,8 @@ This release removes the prefix `InfluxDb` of most types in this library and ree
120
160
- Improved Test Coverage: There's now even more tests verifying correctness of the crate (#5)
121
161
- It's no longer necessary to supply a wildcard generic when working with serde*integration: `client.json_query::<Weather>(query)` instead of `client.json_query::<Weather, *>(query)`
Copy file name to clipboardexpand all lines: README.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@
33
33
This library is a work in progress. This means a feature you might need is not implemented
34
34
yet or could be handled better.
35
35
36
-
Pull requests are always welcome. See [Contributing](https://github.com/Empty2k12/influxdb-rust/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/Empty2k12/influxdb-rust/blob/master/CODE_OF_CONDUCT.md).
36
+
Pull requests are always welcome. See [Contributing](https://github.com/Empty2k12/influxdb-rust/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/Empty2k12/influxdb-rust/blob/master/CODE_OF_CONDUCT.md). For a list of past changes, see [CHANGELOG.md](https://github.com/Empty2k12/influxdb-rust/blob/master/CHANGELOG.md).
37
37
38
38
### Currently Supported Features
39
39
@@ -52,7 +52,7 @@ Pull requests are always welcome. See [Contributing](https://github.com/Empty2k1
52
52
Add the following to your `Cargo.toml`
53
53
54
54
```toml
55
-
influxdb = { version = "0.3.0", features = ["derive"] }
55
+
influxdb = { version = "0.4.0", features = ["derive"] }
56
56
```
57
57
58
58
For an example with using Serde deserialization, please refer to [serde_integration](crate::integrations::serde_integration)
@@ -105,23 +105,23 @@ To communicate with InfluxDB, you can choose the HTTP backend to be used configu
105
105
106
106
-**[hyper](https://github.com/hyperium/hyper)** (used by default)
107
107
```toml
108
-
influxdb = { version = "0.3.0", features = ["derive"] }
108
+
influxdb = { version = "0.4.0", features = ["derive"] }
109
109
```
110
110
-**[curl](https://github.com/alexcrichton/curl-rust)**, using [libcurl](https://curl.se/libcurl/)
111
111
```toml
112
-
influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
112
+
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
113
113
```
114
114
-**[async-h1](https://github.com/http-rs/async-h1)** with native TLS (OpenSSL)
115
115
```toml
116
-
influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
116
+
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
117
117
```
118
118
-**[async-h1](https://github.com/http-rs/async-h1)** with [rustls](https://github.com/ctz/rustls)
119
119
```toml
120
-
influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
120
+
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
121
121
```
122
122
- WebAssembly's `window.fetch`, via `web-sys` and **[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)**
123
123
```toml
124
-
influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
124
+
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
Copy file name to clipboardexpand all lines: influxdb/src/lib.rs
+7-7
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
//! This library is a work in progress. This means a feature you might need is not implemented
2
2
//! yet or could be handled better.
3
3
//!
4
-
//! Pull requests are always welcome. See [Contributing](https://github.com/Empty2k12/influxdb-rust/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/Empty2k12/influxdb-rust/blob/master/CODE_OF_CONDUCT.md).
4
+
//! Pull requests are always welcome. See [Contributing](https://github.com/Empty2k12/influxdb-rust/blob/master/CONTRIBUTING.md) and [Code of Conduct](https://github.com/Empty2k12/influxdb-rust/blob/master/CODE_OF_CONDUCT.md). For a list of past changes, see [CHANGELOG.md](https://github.com/Empty2k12/influxdb-rust/blob/master/CHANGELOG.md).
5
5
//!
6
6
//! ## Currently Supported Features
7
7
//!
@@ -20,7 +20,7 @@
20
20
//! Add the following to your `Cargo.toml`
21
21
//!
22
22
//! ```toml
23
-
//! influxdb = { version = "0.3.0", features = ["derive"] }
23
+
//! influxdb = { version = "0.4.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,23 +73,23 @@
73
73
//!
74
74
//! - **[hyper](https://github.com/hyperium/hyper)** (used by default)
75
75
//! ```toml
76
-
//! influxdb = { version = "0.3.0", features = ["derive"] }
76
+
//! influxdb = { version = "0.4.0", features = ["derive"] }
77
77
//! ```
78
78
//! - **[curl](https://github.com/alexcrichton/curl-rust)**, using [libcurl](https://curl.se/libcurl/)
79
79
//! ```toml
80
-
//! influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
80
+
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
81
81
//! ```
82
82
//! - **[async-h1](https://github.com/http-rs/async-h1)** with native TLS (OpenSSL)
83
83
//! ```toml
84
-
//! influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
84
+
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
85
85
//! ```
86
86
//! - **[async-h1](https://github.com/http-rs/async-h1)** with [rustls](https://github.com/ctz/rustls)
87
87
//! ```toml
88
-
//! influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
88
+
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
89
89
//! ```
90
90
//! - WebAssembly's `window.fetch`, via `web-sys` and **[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)**
91
91
//! ```toml
92
-
//! influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
92
+
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
0 commit comments