Skip to content

Commit

Permalink
Move features before dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
djc committed Sep 4, 2024
1 parent f8c2036 commit 3a4d5d7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ homepage = "https:/rustls/hyper-rustls"
repository = "https:/rustls/hyper-rustls"
documentation = "https://docs.rs/hyper-rustls/"

[features]
default = ["native-tokio", "http1", "tls12", "logging", "aws-lc-rs"]
aws-lc-rs = ["rustls/aws_lc_rs"]
http1 = ["hyper-util/http1"]
http2 = ["hyper-util/http2"]
webpki-tokio = ["webpki-roots"]
native-tokio = ["rustls-native-certs"]
ring = ["rustls/ring"]
tls12 = ["tokio-rustls/tls12", "rustls/tls12"]
logging = ["log", "tokio-rustls/logging", "rustls/logging"]
fips = ["aws-lc-rs", "rustls/fips"]

[dependencies]
http = "1"
hyper = { version = "1", default-features = false }
Expand All @@ -32,18 +44,6 @@ rustls = { version = "0.23", default-features = false, features = ["tls12"] }
rustls-pemfile = "2"
tokio = { version = "1.0", features = ["io-std", "macros", "net", "rt-multi-thread"] }

[features]
default = ["native-tokio", "http1", "tls12", "logging", "aws-lc-rs"]
aws-lc-rs = ["rustls/aws_lc_rs"]
http1 = ["hyper-util/http1"]
http2 = ["hyper-util/http2"]
webpki-tokio = ["webpki-roots"]
native-tokio = ["rustls-native-certs"]
ring = ["rustls/ring"]
tls12 = ["tokio-rustls/tls12", "rustls/tls12"]
logging = ["log", "tokio-rustls/logging", "rustls/logging"]
fips = ["aws-lc-rs", "rustls/fips"]

[[example]]
name = "client"
path = "examples/client.rs"
Expand Down

0 comments on commit 3a4d5d7

Please sign in to comment.