Skip to content

Commit d98e46e

Browse files
committed
The subdependency on aws-lc-rs (dependency of rustls) is no optional
1 parent 8a053ba commit d98e46e

File tree

5 files changed

+19
-2
lines changed

5 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## 0.6.43
99
- Fix decoding of small negative unsigned integer in Mssql.
10+
- The subdependency on aws-lc-rs (dependency of rustls) is no optional. You can use your own crypto provider (such as ring or openssl) by using the new crate feature `runtime-tokio-rustls-nocrypto` instead of `runtime-tokio-rustls`.
1011

1112
## 0.6.42
1213
- Fix `QueryBuilder` for Microsoft SQL Server: https://github.com/sqlpage/sqlx-oldapi/issues/11

Cargo.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,29 @@ runtime-tokio-native-tls = [
9090

9191
runtime-actix-rustls = ["runtime-tokio-rustls"]
9292
runtime-async-std-rustls = [
93+
"sqlx-core/runtime-async-std-rustls",
94+
"sqlx-macros/runtime-async-std-rustls",
95+
"aws_lc_rs",
96+
"_rt-async-std",
97+
]
98+
runtime-async-std-rustls-nocrypto = [
9399
"sqlx-core/runtime-async-std-rustls",
94100
"sqlx-macros/runtime-async-std-rustls",
95101
"_rt-async-std",
96102
]
97103
runtime-tokio-rustls = [
98104
"sqlx-core/runtime-tokio-rustls",
99105
"sqlx-macros/runtime-tokio-rustls",
106+
"aws_lc_rs",
100107
"_rt-tokio",
101108
]
109+
runtime-tokio-rustls-nocrypto = [
110+
"sqlx-core/runtime-tokio-rustls",
111+
"sqlx-macros/runtime-tokio-rustls",
112+
"_rt-tokio",
113+
]
114+
115+
aws_lc_rs = ["sqlx-core/aws_lc_rs"]
102116

103117
# for conditional compilation
104118
_rt-async-std = []

sqlx-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ _rt-async-std = []
9393
_rt-tokio = ["tokio-stream", "tokio-util"]
9494
_tls-native-tls = []
9595
_tls-rustls = ["rustls", "rustls-pemfile", "webpki-roots"]
96+
aws_lc_rs = ["rustls/aws_lc_rs", "sqlx-rt/aws_lc_rs"]
9697

9798
# support offline/decoupled building (enables serialization of `Describe`)
9899
offline = ["serde", "either/serde"]

sqlx-macros/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ heck = { version = "0.5" }
7575
either = "1.6.1"
7676
once_cell = "1.9.0"
7777
proc-macro2 = { version = "1.0.36", default-features = false }
78-
sqlx-core = { package = "sqlx-core-oldapi", version = "0.6.43", default-features = false, features = ["any"], path = "../sqlx-core" }
79-
sqlx-rt = { version = "0.6.43", default-features = false, path = "../sqlx-rt", package = "sqlx-rt-oldapi" }
78+
sqlx-core = { package = "sqlx-core-oldapi", version = "0.6.43", default-features = false, features = ["any", "aws_lc_rs"], path = "../sqlx-core" }
79+
sqlx-rt = { version = "0.6.43", default-features = false, path = "../sqlx-rt", package = "sqlx-rt-oldapi", features = ["aws_lc_rs"] }
8080
serde = { version = "1.0.132", features = ["derive"], optional = true }
8181
serde_json = { version = "1.0.73", optional = true }
8282
sha2 = { version = "0.10.0", optional = true }

sqlx-rt/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ runtime-tokio-native-tls = ["_rt-tokio", "_tls-native-tls", "tokio-native-tls"]
2121
runtime-actix-rustls = ["runtime-tokio-rustls"]
2222
runtime-async-std-rustls = ["_rt-async-std", "_tls-rustls", "futures-rustls"]
2323
runtime-tokio-rustls = ["_rt-tokio", "_tls-rustls", "tokio-rustls"]
24+
aws_lc_rs = ["tokio-rustls/aws_lc_rs"]
2425

2526
# Not used directly and not re-exported from sqlx
2627
_rt-async-std = ["async-std"]

0 commit comments

Comments
 (0)