Skip to content

Commit

Permalink
Merge pull request #304 from serprex/update-rustls
Browse files Browse the repository at this point in the history
rustls: features guide backend
  • Loading branch information
blackbeam authored Nov 12, 2024
2 parents 129b8d8 + 1c47a9f commit 6c61bf9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ url = "2.1"

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

[dependencies.tokio-native-tls]
Expand All @@ -52,7 +53,7 @@ optional = true

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

[dependencies.rustls-pemfile]
Expand Down Expand Up @@ -87,6 +88,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 @@ -95,6 +106,7 @@ default-rustls = [
"derive",
"rustls-tls",
"binlog",
"tls12",
]

# minimal feature set with system flate2 impl
Expand All @@ -114,6 +126,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 6c61bf9

Please sign in to comment.