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
@@ -124,31 +124,26 @@ with C, those interactions are `unsafe`.
124
124
125
125
## Install
126
126
127
-
SQLx is compatible with the [`tokio`]and [`actix`] runtimes; and, the [`native-tls`] and [`rustls`] TLS backends. When adding the dependency, you must chose a runtime feature that is `runtime` + `tls`.
127
+
SQLx uses [`tokio`]for async IO and supports the [`native-tls`] and [`rustls`] TLS backends. When adding the dependency, choose one TLS backend feature.
sqlx-oldapi = { version = "0.6", features = [ "runtime-tokio-rustls" ] }
136
+
# rustls
137
+
sqlx-oldapi = { version = "0.6", features = [ "rustls" ] }
139
138
```
140
139
141
-
<small><small>The runtime and TLS backend not being separate feature sets to select is a workaround for a [Cargo issue](https://github.com/rust-lang/cargo/issues/3494).</small></small>
142
-
143
140
#### Cargo Feature Flags
144
141
145
-
-`runtime-tokio-native-tls`: Use the `tokio` runtime and `native-tls` TLS backend.
146
-
147
-
-`runtime-tokio-rustls`: Use the `tokio` runtime and `rustls` TLS backend.
142
+
-`native-tls`: Use the `native-tls` TLS backend.
148
143
149
-
-`runtime-actix-native-tls`: Use the `actix` runtime and `native-tls` TLS backend.
144
+
-`rustls`: Use the `rustls` TLS backend with the default crypto provider.
150
145
151
-
-`runtime-actix-rustls`: Use the `actix` runtime and `rustls` TLS backend.
146
+
-`rustls-nocrypto`: Use the `rustls` TLS backend without selecting a crypto provider.
152
147
153
148
-`postgres`: Add support for the Postgres database server.
154
149
@@ -217,14 +212,8 @@ See the `examples/` folder for more in-depth usage.
217
212
218
213
```toml
219
214
[dependencies]
220
-
# PICK ONE:
221
-
# Tokio:
222
-
sqlx-oldapi = { version = "0.6", features = [ "runtime-tokio-native-tls" , "postgres" ] }
215
+
sqlx-oldapi = { version = "0.6", features = [ "native-tls" , "postgres" ] }
223
216
tokio = { version = "1", features = ["full"] }
224
-
225
-
# Actix-web:
226
-
sqlx-oldapi = { version = "0.6", features = [ "runtime-actix-native-tls" , "postgres" ] }
0 commit comments