Skip to content

Commit

Permalink
Release v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Empty2k12 committed Mar 8, 2021
1 parent 9a08144 commit 7cad292
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 18 deletions.
43 changes: 42 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,46 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.4.0] - 2021-03-08

### Fixed

- Fix deserialization of Series in case of no values ([@JEnoch](https://github.com/JEnoch) in [#75](https://github.com/Empty2k12/influxdb-rust/pull/75))

### Added

- implement `#[influxdb(tag)]` and `#[influxdb(ignore)]` ([@blasrodri](https://github.com/blasrodri) in [#81](https://github.com/Empty2k12/influxdb-rust/pull/81))

`#[tag]` is now `#[influxdb(tag)]` and fields can be ignored with `#[influxdb(ignore)]`

- Batch write support ([@sunng87](https://github.com/sunng87) in [#87](https://github.com/Empty2k12/influxdb-rust/pull/87))

Build a query containing mutliple rows to be inserted
```
let q0 = Timestamp::Hours(11)
.into_query("weather")
.add_field("temperature", 82)
.add_tag("location", "us-midwest");
let q1 = Timestamp::Hours(12)
.into_query("weather")
.add_field("temperature", 65)
.add_tag("location", "us-midwest");
let query = vec![q0, q1].build();
```

### Changed

- Assertion should consider case-insensitive keywords ([@rcastill](https://github.com/rcastill) in [#83](https://github.com/Empty2k12/influxdb-rust/pull/83))

`#[tag]` is now `#[influxdb(tag)]` and fields can be ignored with `#[influxdb(ignore)]`

- Add h1-client-rustls feature ([@JEnoch](https://github.com/JEnoch) in [#88](https://github.com/Empty2k12/influxdb-rust/pull/88))

Switch between multiple http backends as described in the [README.md](README.md#Choice-of-HTTP-backend)


## [0.3.0] - 2020-11-15

### Changed
Expand Down Expand Up @@ -120,7 +160,8 @@ This release removes the prefix `InfluxDb` of most types in this library and ree
- Improved Test Coverage: There's now even more tests verifying correctness of the crate (#5)
- 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)`

[unreleased]: https://github.com/Empty2k12/influxdb-rust/compare/v0.3.0...HEAD
[unreleased]: https://github.com/Empty2k12/influxdb-rust/compare/v0.4.0...HEAD
[0.4.0]: https://github.com/Empty2k12/influxdb-rust/compare/v0.3.0...v0.4.0
[0.3.0]: https://github.com/Empty2k12/influxdb-rust/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/Empty2k12/influxdb-rust/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/Empty2k12/influxdb-rust/compare/v0.0.6...v0.1.0
Expand Down
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
This library is a work in progress. This means a feature you might need is not implemented
yet or could be handled better.

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

### Currently Supported Features

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

```toml
influxdb = { version = "0.3.0", features = ["derive"] }
influxdb = { version = "0.4.0", features = ["derive"] }
```

For an example with using Serde deserialization, please refer to [serde_integration](crate::integrations::serde_integration)
Expand Down Expand Up @@ -105,23 +105,23 @@ To communicate with InfluxDB, you can choose the HTTP backend to be used configu

- **[hyper](https://github.com/hyperium/hyper)** (used by default)
```toml
influxdb = { version = "0.3.0", features = ["derive"] }
influxdb = { version = "0.4.0", features = ["derive"] }
```
- **[curl](https://github.com/alexcrichton/curl-rust)**, using [libcurl](https://curl.se/libcurl/)
```toml
influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
```
- **[async-h1](https://github.com/http-rs/async-h1)** with native TLS (OpenSSL)
```toml
influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
```
- **[async-h1](https://github.com/http-rs/async-h1)** with [rustls](https://github.com/ctz/rustls)
```toml
influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
```
- WebAssembly's `window.fetch`, via `web-sys` and **[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)**
```toml
influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
```

## License
Expand Down
4 changes: 2 additions & 2 deletions influxdb/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "influxdb"
version = "0.3.0"
version = "0.4.0"
authors = ["Gero Gerke <[email protected]>"]
edition = "2018"
description = "InfluxDB Driver for Rust"
Expand All @@ -19,7 +19,7 @@ travis-ci = { repository = "Empty2k12/influxdb-rust", branch = "master" }
chrono = { version = "0.4.11", features = ["serde"] }
futures = "0.3.4"
lazy_static = "1.4.0"
influxdb_derive = { version = "0.3.0", optional = true }
influxdb_derive = { version = "0.4.0", optional = true }
regex = "1.3.5"
surf = { version = "2.2.0", default-features = false }
serde = { version = "1.0.104", features = ["derive"], optional = true }
Expand Down
14 changes: 7 additions & 7 deletions influxdb/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! This library is a work in progress. This means a feature you might need is not implemented
//! yet or could be handled better.
//!
//! 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).
//! 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).
//!
//! ## Currently Supported Features
//!
Expand All @@ -20,7 +20,7 @@
//! Add the following to your `Cargo.toml`
//!
//! ```toml
//! influxdb = { version = "0.3.0", features = ["derive"] }
//! influxdb = { version = "0.4.0", features = ["derive"] }
//! ```
//!
//! For an example with using Serde deserialization, please refer to [serde_integration](crate::integrations::serde_integration)
Expand Down Expand Up @@ -73,23 +73,23 @@
//!
//! - **[hyper](https://github.com/hyperium/hyper)** (used by default)
//! ```toml
//! influxdb = { version = "0.3.0", features = ["derive"] }
//! influxdb = { version = "0.4.0", features = ["derive"] }
//! ```
//! - **[curl](https://github.com/alexcrichton/curl-rust)**, using [libcurl](https://curl.se/libcurl/)
//! ```toml
//! influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
//! ```
//! - **[async-h1](https://github.com/http-rs/async-h1)** with native TLS (OpenSSL)
//! ```toml
//! influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
//! ```
//! - **[async-h1](https://github.com/http-rs/async-h1)** with [rustls](https://github.com/ctz/rustls)
//! ```toml
//! influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
//! ```
//! - WebAssembly's `window.fetch`, via `web-sys` and **[wasm-bindgen](https://github.com/rustwasm/wasm-bindgen)**
//! ```toml
//! influxdb = { version = "0.3.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
//! ```
//!
//! # License
Expand Down
2 changes: 1 addition & 1 deletion influxdb_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[package]
name = "influxdb_derive"
version = "0.3.0"
version = "0.4.0"
authors = ["Gero Gerke <[email protected]>"]
edition = "2018"
description = "InfluxDB Driver for Rust - Derive"
Expand Down

0 comments on commit 7cad292

Please sign in to comment.