Skip to content

Commit

Permalink
Update rustls
Browse files Browse the repository at this point in the history
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
  • Loading branch information
serprex committed Apr 24, 2024
1 parent 08b7b70 commit 40d2b2d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ twox-hash = "1"
url = "2.1"

[dependencies.tokio-rustls]
version = "0.25"
version = "0.26"
default-features = false
optional = true

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

[dependencies.rustls]
version = "0.22.2"
features = []
version = "0.23"
default-features = false
optional = true

[dependencies.rustls-pemfile]
Expand Down Expand Up @@ -117,6 +118,10 @@ rustls-tls = [
"rustls-pemfile",
]

aws-lc-rs = ["rustls/aws_lc_rs", "tokio-rustls/aws_lc_rs"]
ring = ["rustls/ring", "tokio-rustls/ring"]
tls12 = ["rustls/tls12", "tokio-rustls/tls12"]

binlog = ["mysql_common/binlog"]

# mysql_common features
Expand Down

0 comments on commit 40d2b2d

Please sign in to comment.