Skip to content

Commit 1b6d2b3

Browse files
committed
activate tls1.2 in sqlx macros
1 parent d98e46e commit 1b6d2b3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ runtime-async-std-rustls = [
9393
"sqlx-core/runtime-async-std-rustls",
9494
"sqlx-macros/runtime-async-std-rustls",
9595
"aws_lc_rs",
96+
"tls12",
9697
"_rt-async-std",
9798
]
9899
runtime-async-std-rustls-nocrypto = [
@@ -104,6 +105,7 @@ runtime-tokio-rustls = [
104105
"sqlx-core/runtime-tokio-rustls",
105106
"sqlx-macros/runtime-tokio-rustls",
106107
"aws_lc_rs",
108+
"tls12",
107109
"_rt-tokio",
108110
]
109111
runtime-tokio-rustls-nocrypto = [
@@ -113,6 +115,7 @@ runtime-tokio-rustls-nocrypto = [
113115
]
114116

115117
aws_lc_rs = ["sqlx-core/aws_lc_rs"]
118+
tls12 = ["sqlx-core/tls12"]
116119

117120
# for conditional compilation
118121
_rt-async-std = []

sqlx-core/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ _rt-tokio = ["tokio-stream", "tokio-util"]
9494
_tls-native-tls = []
9595
_tls-rustls = ["rustls", "rustls-pemfile", "webpki-roots"]
9696
aws_lc_rs = ["rustls/aws_lc_rs", "sqlx-rt/aws_lc_rs"]
97+
tls12 = ["rustls/tls12"]
9798

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

sqlx-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ 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", "aws_lc_rs"], path = "../sqlx-core" }
78+
sqlx-core = { package = "sqlx-core-oldapi", version = "0.6.43", default-features = false, features = ["any", "aws_lc_rs", "tls12"], path = "../sqlx-core" }
7979
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 }

0 commit comments

Comments
 (0)