Skip to content

Commit

Permalink
Merge pull request #5 from phip1611/rustls-fix
Browse files Browse the repository at this point in the history
rustls: do not depend on unnecessary features
  • Loading branch information
Keruspe authored May 2, 2024
2 parents e30393e + a1f31e0 commit 8e565b1
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
@@ -1,6 +1,6 @@
[package]
name = "rustls-connector"
version = "0.20.0"
version = "0.21.0"
authors = ["Marc-Antoine Perennou <[email protected]>"]
edition = "2021"
description = "Connector similar to openssl or native-tls for rustls"
Expand All @@ -15,12 +15,17 @@ rust-version = "1.60.0"
name = "rustls_connector"

[features]
default = ["native-certs"]
default = ["native-certs", "rustls--aws_lc_rs" ]
native-certs = ["rustls-native-certs", "log"]
webpki-roots-certs = ["webpki-roots"]

# rustls crypto providers. Choose at least one. Otherwise, runtime errors.
# See https://docs.rs/rustls/latest/rustls/#crate-features. for more info
rustls--aws_lc_rs = ["rustls/aws_lc_rs"] # default, but doesn't build everywhere
rustls--ring = ["rustls/ring"] # more compatible, (e.g., easily builds on Windows)

[dependencies]
rustls = "^0.23"
rustls = { version = "^0.23", default-features = false, features = ["std"] }
rustls-webpki = "^0.102"

[dependencies.log]
Expand Down

0 comments on commit 8e565b1

Please sign in to comment.