Skip to content

Commit

Permalink
Disable default features for rustls
Browse files Browse the repository at this point in the history
In rustls 0.20, TLS 1.2 is optional but enabled by default. We also
don't need to depend on rustls enabling logging.
  • Loading branch information
djc committed Oct 25, 2021
1 parent 64ea212 commit 5ff4247
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ futures-util = "0.3.11"
hdrhistogram = { version = "7.2", default-features = false }
quinn = { path = "../quinn" }
rcgen = "0.8"
rustls = { version = "0.20", features = ["quic"] }
rustls = { version = "0.20", default-features = false, features = ["quic"] }
structopt = "0.3"
tokio = { version = "1.0.1", features = ["rt"] }
tracing = "0.1.10"
Expand Down
2 changes: 1 addition & 1 deletion perf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ futures-util = "0.3.11"
hdrhistogram = { version = "7.2", default-features = false }
quinn = { path = "../quinn" }
rcgen = "0.8"
rustls = { version = "0.20", features = ["dangerous_configuration", "quic"] }
rustls = { version = "0.20", default-features = false, features = ["dangerous_configuration", "quic"] }
rustls-pemfile = "0.2.1"
serde = { version = "1.0", features = ["derive"], optional = true }
serde_json = { version = "1.0", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion quinn-proto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ring = { version = "0.16.7", optional = true }
# If rustls gets updated to a new version which contains
# https://github.com/ctz/rustls/commit/7117a805e0104705da50259357d8effa7d599e37
# the custom cipher list in `quinn-proto/src/crypto/rustls.rs` can be removed.
rustls = { version = "0.20", features = ["quic"], optional = true }
rustls = { version = "0.20", default-features = false, features = ["quic"], optional = true }
rustls-native-certs = { version = "0.6", optional = true }
rustls-pemfile = { version = "0.2.1", optional = true }
slab = "0.4"
Expand Down
2 changes: 1 addition & 1 deletion quinn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ futures-util = { version = "0.3.11", default-features = false, features = ["io"]
futures-channel = "0.3.11"
fxhash = "0.2.1"
proto = { package = "quinn-proto", path = "../quinn-proto", version = "0.7", default-features = false }
rustls = { version = "0.20", features = ["quic"], optional = true }
rustls = { version = "0.20", default-features = false, features = ["quic"], optional = true }
thiserror = "1.0.21"
tracing = "0.1.10"
tokio = { version = "1.0.1", features = ["rt", "time"] }
Expand Down

0 comments on commit 5ff4247

Please sign in to comment.