Skip to content

Commit 95031ca

Browse files
committed
breaking: delete runtime+TLS combination features
1 parent 7a248d2 commit 95031ca

File tree

4 files changed

+2
-23
lines changed

4 files changed

+2
-23
lines changed

Cargo.toml

-8
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,6 @@ tls-rustls-ring-native-roots = ["sqlx-core/_tls-rustls-ring-native-roots", "sqlx
9292
# No-op feature used by the workflows to compile without TLS enabled. Not meant for general use.
9393
tls-none = []
9494

95-
# Legacy Runtime + TLS features
96-
97-
runtime-async-std-native-tls = ["runtime-async-std", "tls-native-tls"]
98-
runtime-async-std-rustls = ["runtime-async-std", "tls-rustls-ring"]
99-
100-
runtime-tokio-native-tls = ["runtime-tokio", "tls-native-tls"]
101-
runtime-tokio-rustls = ["runtime-tokio", "tls-rustls-ring"]
102-
10395
# for conditional compilation
10496
_rt-async-std = []
10597
_rt-tokio = []

README.md

-8
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,8 @@ be removed in the future.
165165

166166
- `runtime-async-std`: Use the `async-std` runtime without enabling a TLS backend.
167167

168-
- `runtime-async-std-native-tls`: Use the `async-std` runtime and `native-tls` TLS backend (SOFT-DEPRECATED).
169-
170-
- `runtime-async-std-rustls`: Use the `async-std` runtime and `rustls` TLS backend (SOFT-DEPRECATED).
171-
172168
- `runtime-tokio`: Use the `tokio` runtime without enabling a TLS backend.
173169

174-
- `runtime-tokio-native-tls`: Use the `tokio` runtime and `native-tls` TLS backend (SOFT-DEPRECATED).
175-
176-
- `runtime-tokio-rustls`: Use the `tokio` runtime and `rustls` TLS backend (SOFT-DEPRECATED).
177-
178170
- Actix-web is fully compatible with Tokio and so a separate runtime feature is no longer needed.
179171

180172
- `tls-native-tls`: Use the `native-tls` TLS backend (OpenSSL on *nix, SChannel on Windows, Secure Transport on macOS).

sqlx-cli/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ backoff = { version = "0.4.0", features = ["futures", "tokio"] }
5050

5151
[features]
5252
default = ["postgres", "sqlite", "mysql", "native-tls", "completions"]
53-
rustls = ["sqlx/runtime-tokio-rustls"]
54-
native-tls = ["sqlx/runtime-tokio-native-tls"]
53+
rustls = ["sqlx/tls-rustls"]
54+
native-tls = ["sqlx/tls-native-tls"]
5555

5656
# databases
5757
mysql = ["sqlx/mysql"]

src/lib.md

-5
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ You choose which runtime SQLx uses by default by enabling one of the following f
1212
* `runtime-async-std`
1313
* `runtime-tokio`
1414

15-
The `runtime-actix` feature also exists but is an alias of `runtime-tokio`.
16-
1715
If more than one runtime feature is enabled, the Tokio runtime is used if a Tokio context exists on the current
1816
thread, i.e. [`tokio::runtime::Handle::try_current()`] returns `Ok`; `async-std` is used otherwise.
1917

@@ -53,9 +51,6 @@ Consult the user manual for your database to find the TLS versions it supports.
5351
If your connection configuration requires a TLS upgrade but TLS support was not enabled, the connection attempt
5452
will return an error.
5553

56-
The legacy runtime+TLS combination feature flags are still supported, but for forward-compatibility, use of the separate
57-
runtime and TLS feature flags is recommended.
58-
5954
[the LaunchBadge team]: https://www.launchbadge.com
6055
[README]: https://www.github.com/launchbadge/sqlx/tree/main/README.md
6156
[browse our example projects]: https://www.github.com/launchbadge/sqlx/tree/main/examples

0 commit comments

Comments
 (0)