Skip to content

Commit

Permalink
Allow choosing rustls crypto backend
Browse files Browse the repository at this point in the history
  • Loading branch information
paolobarbolini authored and Jarema committed May 4, 2024
1 parent 9487688 commit 89366e4
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions async-nats/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ serde_json = "1.0.104"
serde_repr = "0.1.16"
tokio = { version = "1.36", features = ["macros", "rt", "fs", "net", "sync", "time", "io-util"] }
url = { version = "2"}
tokio-rustls = { version = "0.26", default-features = false, features = ["ring"] }
tokio-rustls = { version = "0.26", default-features = false }
rustls-pemfile = "2"
nuid = "0.5"
serde_nanos = "0.1.3"
Expand Down Expand Up @@ -56,9 +56,12 @@ num = "0.4.1"


[features]
default = ["server_2_10"]
default = ["server_2_10", "ring"]
# Enables Service API for the client.
service = []
aws-lc-rs = ["tokio-rustls/aws-lc-rs"]
ring = ["tokio-rustls/ring"]
fips = ["aws-lc-rs", "tokio-rustls/fips"]
# All experimental features are part of this feature flag.
experimental = ["service"]
# Features that require nats-server version 2.10 or higher.
Expand Down

0 comments on commit 89366e4

Please sign in to comment.