Skip to content

Commit efab626

Browse files
committed
Update rustls
rustls replaced ring with aws-lc-rs as default crypto backend, expose features to select between the two, along with a feature on whether to enable tls 1.2
1 parent 08b7b70 commit efab626

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

Cargo.toml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ twox-hash = "1"
4242
url = "2.1"
4343

4444
[dependencies.tokio-rustls]
45-
version = "0.25"
45+
version = "0.26"
46+
default-features = false
4647
optional = true
4748

4849
[dependencies.tokio-native-tls]
@@ -54,8 +55,8 @@ version = "0.2"
5455
optional = true
5556

5657
[dependencies.rustls]
57-
version = "0.22.2"
58-
features = []
58+
version = "0.23"
59+
default-features = false
5960
optional = true
6061

6162
[dependencies.rustls-pemfile]
@@ -90,6 +91,16 @@ default = [
9091
]
9192

9293
default-rustls = [
94+
"default-rustls-no-provider",
95+
"aws-lc-rs",
96+
]
97+
98+
default-rustls-ring [
99+
"default-rustls-no-provider",
100+
"ring",
101+
]
102+
103+
default-rustls-no-provider = [
93104
"flate2/rust_backend",
94105
"bigdecimal",
95106
"rust_decimal",
@@ -98,6 +109,7 @@ default-rustls = [
98109
"derive",
99110
"rustls-tls",
100111
"binlog",
112+
"tls12",
101113
]
102114

103115
# minimal feature set with system flate2 impl
@@ -117,6 +129,10 @@ rustls-tls = [
117129
"rustls-pemfile",
118130
]
119131

132+
aws-lc-rs = ["rustls/aws_lc_rs", "tokio-rustls/aws_lc_rs"]
133+
ring = ["rustls/ring", "tokio-rustls/ring"]
134+
tls12 = ["rustls/tls12", "tokio-rustls/tls12"]
135+
120136
binlog = ["mysql_common/binlog"]
121137

122138
# mysql_common features

0 commit comments

Comments
 (0)