Skip to content

Commit 7cad292

Browse files
committed
Release v0.4.0
1 parent 9a08144 commit 7cad292

File tree

5 files changed

+59
-18
lines changed

5 files changed

+59
-18
lines changed

CHANGELOG.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

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+
1050
## [0.3.0] - 2020-11-15
1151
1252
### Changed
@@ -120,7 +160,8 @@ This release removes the prefix `InfluxDb` of most types in this library and ree
120160
- Improved Test Coverage: There's now even more tests verifying correctness of the crate (#5)
121161
- 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)`
122162
123-
[unreleased]: https://github.com/Empty2k12/influxdb-rust/compare/v0.3.0...HEAD
163+
[unreleased]: https://github.com/Empty2k12/influxdb-rust/compare/v0.4.0...HEAD
164+
[0.4.0]: https://github.com/Empty2k12/influxdb-rust/compare/v0.3.0...v0.4.0
124165
[0.3.0]: https://github.com/Empty2k12/influxdb-rust/compare/v0.2.0...v0.3.0
125166
[0.2.0]: https://github.com/Empty2k12/influxdb-rust/compare/v0.1.0...v0.2.0
126167
[0.1.0]: https://github.com/Empty2k12/influxdb-rust/compare/v0.0.6...v0.1.0

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
This library is a work in progress. This means a feature you might need is not implemented
3434
yet or could be handled better.
3535

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).
3737

3838
### Currently Supported Features
3939

@@ -52,7 +52,7 @@ Pull requests are always welcome. See [Contributing](https://github.com/Empty2k1
5252
Add the following to your `Cargo.toml`
5353

5454
```toml
55-
influxdb = { version = "0.3.0", features = ["derive"] }
55+
influxdb = { version = "0.4.0", features = ["derive"] }
5656
```
5757

5858
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
105105

106106
- **[hyper](https://github.com/hyperium/hyper)** (used by default)
107107
```toml
108-
influxdb = { version = "0.3.0", features = ["derive"] }
108+
influxdb = { version = "0.4.0", features = ["derive"] }
109109
```
110110
- **[curl](https://github.com/alexcrichton/curl-rust)**, using [libcurl](https://curl.se/libcurl/)
111111
```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"] }
113113
```
114114
- **[async-h1](https://github.com/http-rs/async-h1)** with native TLS (OpenSSL)
115115
```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"] }
117117
```
118118
- **[async-h1](https://github.com/http-rs/async-h1)** with [rustls](https://github.com/ctz/rustls)
119119
```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"] }
121121
```
122122
- WebAssembly's `window.fetch`, via `web-sys` and **[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)**
123123
```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"] }
125125
```
126126

127127
## License

influxdb/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[package]
44
name = "influxdb"
5-
version = "0.3.0"
5+
version = "0.4.0"
66
authors = ["Gero Gerke <11deutron11@gmail.com>"]
77
edition = "2018"
88
description = "InfluxDB Driver for Rust"
@@ -19,7 +19,7 @@ travis-ci = { repository = "Empty2k12/influxdb-rust", branch = "master" }
1919
chrono = { version = "0.4.11", features = ["serde"] }
2020
futures = "0.3.4"
2121
lazy_static = "1.4.0"
22-
influxdb_derive = { version = "0.3.0", optional = true }
22+
influxdb_derive = { version = "0.4.0", optional = true }
2323
regex = "1.3.5"
2424
surf = { version = "2.2.0", default-features = false }
2525
serde = { version = "1.0.104", features = ["derive"], optional = true }

influxdb/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! This library is a work in progress. This means a feature you might need is not implemented
22
//! yet or could be handled better.
33
//!
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).
55
//!
66
//! ## Currently Supported Features
77
//!
@@ -20,7 +20,7 @@
2020
//! Add the following to your `Cargo.toml`
2121
//!
2222
//! ```toml
23-
//! influxdb = { version = "0.3.0", features = ["derive"] }
23+
//! influxdb = { version = "0.4.0", features = ["derive"] }
2424
//! ```
2525
//!
2626
//! For an example with using Serde deserialization, please refer to [serde_integration](crate::integrations::serde_integration)
@@ -73,23 +73,23 @@
7373
//!
7474
//! - **[hyper](https://github.com/hyperium/hyper)** (used by default)
7575
//! ```toml
76-
//! influxdb = { version = "0.3.0", features = ["derive"] }
76+
//! influxdb = { version = "0.4.0", features = ["derive"] }
7777
//! ```
7878
//! - **[curl](https://github.com/alexcrichton/curl-rust)**, using [libcurl](https://curl.se/libcurl/)
7979
//! ```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"] }
8181
//! ```
8282
//! - **[async-h1](https://github.com/http-rs/async-h1)** with native TLS (OpenSSL)
8383
//! ```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"] }
8585
//! ```
8686
//! - **[async-h1](https://github.com/http-rs/async-h1)** with [rustls](https://github.com/ctz/rustls)
8787
//! ```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"] }
8989
//! ```
9090
//! - WebAssembly's `window.fetch`, via `web-sys` and **[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)**
9191
//! ```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"] }
9393
//! ```
9494
//!
9595
//! # License

influxdb_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[package]
44
name = "influxdb_derive"
5-
version = "0.3.0"
5+
version = "0.4.0"
66
authors = ["Gero Gerke <11deutron11@gmail.com>"]
77
edition = "2018"
88
description = "InfluxDB Driver for Rust - Derive"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy