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
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.
109
105
110
106
## Choice of HTTP backend
111
107
112
108
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.
113
109
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"] }
0 commit comments