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 efab626
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 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 @@ -90,6 +91,16 @@ default = [
]

default-rustls = [
"default-rustls-no-provider",
"aws-lc-rs",
]

default-rustls-ring [
"default-rustls-no-provider",
"ring",
]

default-rustls-no-provider = [
"flate2/rust_backend",
"bigdecimal",
"rust_decimal",
Expand All @@ -98,6 +109,7 @@ default-rustls = [
"derive",
"rustls-tls",
"binlog",
"tls12",
]

# minimal feature set with system flate2 impl
Expand All @@ -117,6 +129,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 efab626

Please sign in to comment.