Skip to content

Commit f513193

Browse files
committed
Drop MSRV to 1.63
We could go lower but then we'd be at idna<1.0 and I believe that has some advisories ...
1 parent bf39d30 commit f513193

File tree

3 files changed

+59
-75
lines changed

3 files changed

+59
-75
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ members = ["influxdb", "influxdb_derive", "benches"]
66
[workspace.package]
77
authors = ["Gero Gerke <[email protected]>", "Dominic <[email protected]>"]
88
edition = "2018"
9-
rust-version = "1.65"
9+
rust-version = "1.63"
1010
license = "MIT"
1111
repository = "https://github.com/influxdb-rs/influxdb-rust"
1212

README.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
<a href="https://www.rust-lang.org/en-US/">
2626
<img src="https://img.shields.io/badge/Made%20with-Rust-orange.svg" alt='Build with Rust' />
2727
</a>
28-
<a href="https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html">
29-
<img src="https://img.shields.io/badge/rustc-1.65+-yellow.svg" alt='Minimum Rust Version: 1.65' />
28+
<a href="https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html">
29+
<img src="https://img.shields.io/badge/rustc-1.63+-yellow.svg" alt='Minimum Rust Version: 1.63' />
3030
</a>
3131
</p>
3232

README.md

+56-72
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,36 @@
2525
<a href="https://www.rust-lang.org/en-US/">
2626
<img src="https://img.shields.io/badge/Made%20with-Rust-orange.svg" alt='Build with Rust' />
2727
</a>
28-
<a href="https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html">
29-
<img src="https://img.shields.io/badge/rustc-1.65+-yellow.svg" alt='Minimum Rust Version: 1.65' />
28+
<a href="https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html">
29+
<img src="https://img.shields.io/badge/rustc-1.63+-yellow.svg" alt='Minimum Rust Version: 1.63' />
3030
</a>
3131
</p>
3232

3333
Pull requests are always welcome. See [Contributing][__link0] and [Code of Conduct][__link1]. For a list of past changes, see [CHANGELOG.md][__link2].
3434

35-
3635
### Currently Supported Features
3736

38-
- Reading and writing to InfluxDB
39-
- Optional Serde support for deserialization
40-
- Running multiple queries in one request (e.g. `SELECT * FROM weather_berlin; SELECT * FROM weather_london`)
41-
- Writing single or multiple measurements in one request (e.g. `WriteQuery` or `Vec<WriteQuery>` argument)
42-
- Authenticated and unauthenticated connections
43-
- `async`/`await` support
44-
- `#[derive(InfluxDbWriteable)]` derive macro for writing / reading into structs
45-
- `GROUP BY` support
46-
- Tokio and async-std support (see example below) or [available backends][__link3]
47-
- Swappable HTTP backends ([see below](#Choice-of-HTTP-backend))
48-
37+
* Reading and writing to InfluxDB
38+
* Optional Serde support for deserialization
39+
* Running multiple queries in one request (e.g. `SELECT * FROM weather_berlin; SELECT * FROM weather_london`)
40+
* Writing single or multiple measurements in one request (e.g. `WriteQuery` or `Vec<WriteQuery>` argument)
41+
* Authenticated and unauthenticated connections
42+
* `async`/`await` support
43+
* `#[derive(InfluxDbWriteable)]` derive macro for writing / reading into structs
44+
* `GROUP BY` support
45+
* Tokio and async-std support (see example below) or [available backends][__link3]
46+
* Swappable HTTP backends ([see below](#Choice-of-HTTP-backend))
4947

5048
## Quickstart
5149

5250
Add the following to your `Cargo.toml`
5351

54-
5552
```toml
5653
influxdb = { version = "0.7.2", features = ["derive"] }
5754
```
5855

5956
For an example with using Serde deserialization, please refer to [serde_integration][__link4]
6057

61-
6258
```rust
6359
use chrono::{DateTime, Utc};
6460
use influxdb::{Client, Error, InfluxDbWriteable, ReadQuery, Timestamp};
@@ -104,73 +100,62 @@ async fn main() -> Result<(), Error> {
104100
}
105101
```
106102

107-
For further examples, check out the integration tests in `tests/integration_tests.rs` in the repository.
108-
103+
For further examples, check out the integration tests in `tests/integration_tests.rs`
104+
in the repository.
109105

110106
## Choice of HTTP backend
111107

112108
To communicate with InfluxDB, you can choose the HTTP backend to be used configuring the appropriate feature. We recommend sticking with the default reqwest-based client, unless you really need async-std compatibility.
113109

114-
- **[hyper][__link5]** (through reqwest, used by default), with [rustls][__link6]
115-
```toml
116-
influxdb = { version = "0.7.2", features = ["derive"] }
117-
```
118-
119-
120-
- **[hyper][__link7]** (through reqwest), with native TLS (OpenSSL)
121-
```toml
122-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "reqwest-client-native-tls"] }
123-
```
124-
125-
126-
- **[hyper][__link8]** (through reqwest), with vendored native TLS (OpenSSL)
127-
```toml
128-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "reqwest-client-native-tls-vendored"] }
129-
```
130-
131-
132-
- **[hyper][__link9]** (through surf), use this if you need tokio 0.2 compatibility
133-
```toml
134-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "hyper-client"] }
135-
```
136-
137-
138-
- **[curl][__link10]**, using [libcurl][__link11]
139-
```toml
140-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "curl-client"] }
141-
```
142-
143-
144-
- **[async-h1][__link12]** with native TLS (OpenSSL)
145-
```toml
146-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "h1-client"] }
147-
```
148-
149-
150-
- **[async-h1][__link13]** with [rustls][__link14]
151-
```toml
152-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "h1-client-rustls"] }
153-
```
154-
155-
156-
- WebAssembly’s `window.fetch`, via `web-sys` and **[wasm-bindgen][__link15]**
157-
```toml
158-
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "wasm-client"] }
159-
```
160-
161-
162-
110+
* **[hyper][__link5]** (through reqwest, used by default), with [rustls][__link6]
111+
```toml
112+
influxdb = { version = "0.7.2", features = ["derive"] }
113+
```
114+
115+
* **[hyper][__link7]** (through reqwest), with native TLS (OpenSSL)
116+
```toml
117+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "reqwest-client-native-tls"] }
118+
```
119+
120+
* **[hyper][__link8]** (through reqwest), with vendored native TLS (OpenSSL)
121+
```toml
122+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "reqwest-client-native-tls-vendored"] }
123+
```
124+
125+
* **[hyper][__link9]** (through surf), use this if you need tokio 0.2 compatibility
126+
```toml
127+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "hyper-client"] }
128+
```
129+
130+
* **[curl][__link10]**, using [libcurl][__link11]
131+
```toml
132+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "curl-client"] }
133+
```
134+
135+
* **[async-h1][__link12]** with native TLS (OpenSSL)
136+
```toml
137+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "h1-client"] }
138+
```
139+
140+
* **[async-h1][__link13]** with [rustls][__link14]
141+
```toml
142+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "h1-client-rustls"] }
143+
```
144+
145+
* WebAssembly’s `window.fetch`, via `web-sys` and **[wasm-bindgen][__link15]**
146+
```toml
147+
influxdb = { version = "0.7.2", default-features = false, features = ["derive", "serde", "wasm-client"] }
148+
```
163149

164150
## License
165151

166-
[![License: MIT][__link16]][__link17]
167-
152+
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)][__link16]
168153

169154

170155
@ 2020-2024 Gero Gerke, msrd0 and [contributors].
171156

172157
[contributors]: https://github.com/influxdb-rs/influxdb-rust/graphs/contributors
173-
[__cargo_doc2readme_dependencies_info]: ggGkYW0BYXSEG_RDmlyxxvyrG0rwcLBKoYdvG5It9hbWNgjUGzjD8iBYfsFFYXKEG1LaAVLASZMqG5J2qfpyCvbMG_Rohh5BobOmG0DqLv5454SZYWSBgmhpbmZsdXhkYmUwLjcuMg
158+
[__cargo_doc2readme_dependencies_info]: ggGkYW0BYXSEGyIMJPLf2ROkG1r7sBs89LDFG3LXR7q-ZFu2GzrbAmRaqoJqYXKEG1LaAVLASZMqG5J2qfpyCvbMG_Rohh5BobOmG0DqLv5454SZYWSBgmhpbmZsdXhkYmUwLjcuMg
174159
[__link0]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CONTRIBUTING.md
175160
[__link1]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CODE_OF_CONDUCT.md
176161
[__link10]: https://github.com/alexcrichton/curl-rust
@@ -179,8 +164,7 @@ To communicate with InfluxDB, you can choose the HTTP backend to be used configu
179164
[__link13]: https://github.com/http-rs/async-h1
180165
[__link14]: https://github.com/ctz/rustls
181166
[__link15]: https://github.com/rustwasm/wasm-bindgen
182-
[__link16]: https://img.shields.io/badge/License-MIT-yellow.svg
183-
[__link17]: https://opensource.org/licenses/MIT
167+
[__link16]: https://opensource.org/licenses/MIT
184168
[__link2]: https://github.com/influxdb-rs/influxdb-rust/blob/main/CHANGELOG.md
185169
[__link3]: https://github.com/influxdb-rs/influxdb-rust/blob/main/influxdb/Cargo.toml
186170
[__link4]: https://docs.rs/influxdb/0.7.2/influxdb/?search=integrations::serde_integration

0 commit comments

Comments
 (0)