Skip to content

Commit

Permalink
Release 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
msrd0 committed Nov 4, 2021
1 parent 26c0ba7 commit f7141a3
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 21 deletions.
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- reqwest-based http client (enabled by default)
## [0.5.0] - 2021-11-04

### Added

- Reqwest client for Tokio 1.0 support
- New client constructor `with_http_client` ([@nshaaban-cPacket](https://github.com/nshaaban-cPacket) in [#94](https://github.com/influxdb-rs/influxdb-rust/pull/94))

### Changed

- default client is the new reqwest client
- deprecate `<dyn Query>::raw_read_query` in favour of `ReadQuery::new`
- `Client::query` now accepts both owned and borrowed queries as argument

## [0.4.0] - 2021-03-08

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Pull requests are always welcome. See [Contributing](https://github.com/influxdb
Add the following to your `Cargo.toml`

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

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

- **[hyper](https://github.com/hyperium/hyper)** (through reqwest, used by default), with [rustls](https://github.com/ctz/rustls)
```toml
influxdb = { version = "0.4.0", features = ["derive"] }
influxdb = { version = "0.5.0", features = ["derive"] }
```

- **[hyper](https://github.com/hyperium/hyper)** (through reqwest), with native TLS (OpenSSL)
```toml
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "reqwest-client"] }
influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "reqwest-client"] }
```

- **[hyper](https://github.com/hyperium/hyper)** (through surf), use this if you need tokio 0.2 compatibility
```toml
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
```
- **[curl](https://github.com/alexcrichton/curl-rust)**, using [libcurl](https://curl.se/libcurl/)
```toml
influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
influxdb = { version = "0.5.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.4.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
influxdb = { version = "0.5.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.4.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
influxdb = { version = "0.5.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.4.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
influxdb = { version = "0.5.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.4.0"
version = "0.5.0"
authors = ["Gero Gerke <[email protected]>"]
edition = "2018"
description = "InfluxDB Driver for Rust"
Expand All @@ -16,7 +16,7 @@ repository = "https://github.com/influxdb-rs/influxdb-rust"
chrono = { version = "0.4.11", features = ["serde"] }
futures-util = "0.3.17"
http = "0.2.4"
influxdb_derive = { version = "0.4.0", optional = true }
influxdb_derive = { version = "0.5.0", optional = true }
lazy_static = "1.4.0"
regex = "1.3.5"
reqwest = { version = "0.11.4", default-features = false, optional = true }
Expand Down
16 changes: 8 additions & 8 deletions influxdb/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! Add the following to your `Cargo.toml`
//!
//! ```toml
//! influxdb = { version = "0.4.0", features = ["derive"] }
//! influxdb = { version = "0.5.0", features = ["derive"] }
//! ```
//!
//! For an example with using Serde deserialization, please refer to [serde_integration](crate::integrations::serde_integration)
Expand Down Expand Up @@ -73,33 +73,33 @@
//!
//! - **[hyper](https://github.com/hyperium/hyper)** (through reqwest, used by default), with [rustls](https://github.com/ctz/rustls)
//! ```toml
//! influxdb = { version = "0.4.0", features = ["derive"] }
//! influxdb = { version = "0.5.0", features = ["derive"] }
//! ```
//!
//! - **[hyper](https://github.com/hyperium/hyper)** (through reqwest), with native TLS (OpenSSL)
//! ```toml
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "reqwest-client"] }
//! influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "reqwest-client"] }
//! ```
//!
//! - **[hyper](https://github.com/hyperium/hyper)** (through surf), use this if you need tokio 0.2 compatibility
//! ```toml
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
//! influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
//! ```
//! - **[curl](https://github.com/alexcrichton/curl-rust)**, using [libcurl](https://curl.se/libcurl/)
//! ```toml
//! influxdb = { version = "0.4.0", default-features = false, features = ["derive", "use-serde", "curl-client"] }
//! influxdb = { version = "0.5.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.4.0", default-features = false, features = ["derive", "use-serde", "h1-client"] }
//! influxdb = { version = "0.5.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.4.0", default-features = false, features = ["derive", "use-serde", "h1-client-rustls"] }
//! influxdb = { version = "0.5.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.4.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
//! influxdb = { version = "0.5.0", default-features = false, features = ["derive", "use-serde", "wasm-client"] }
//! ```
//!
//! # License
Expand Down
4 changes: 2 additions & 2 deletions influxdb_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

[package]
name = "influxdb_derive"
version = "0.4.0"
version = "0.5.0"
authors = ["Gero Gerke <[email protected]>"]
edition = "2018"
description = "InfluxDB Driver for Rust - Derive"
description = "Private implementation detail of the influxdb crate"
keywords = ["influxdb", "database", "influx", "derive"]
license = "MIT"
readme = "README.md"
Expand Down

0 comments on commit f7141a3

Please sign in to comment.