Skip to content

Commit 3a4d5d7

Browse files
committed
Move features before dependencies
1 parent f8c2036 commit 3a4d5d7

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Cargo.toml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ homepage = "https://github.com/rustls/hyper-rustls"
1010
repository = "https://github.com/rustls/hyper-rustls"
1111
documentation = "https://docs.rs/hyper-rustls/"
1212

13+
[features]
14+
default = ["native-tokio", "http1", "tls12", "logging", "aws-lc-rs"]
15+
aws-lc-rs = ["rustls/aws_lc_rs"]
16+
http1 = ["hyper-util/http1"]
17+
http2 = ["hyper-util/http2"]
18+
webpki-tokio = ["webpki-roots"]
19+
native-tokio = ["rustls-native-certs"]
20+
ring = ["rustls/ring"]
21+
tls12 = ["tokio-rustls/tls12", "rustls/tls12"]
22+
logging = ["log", "tokio-rustls/logging", "rustls/logging"]
23+
fips = ["aws-lc-rs", "rustls/fips"]
24+
1325
[dependencies]
1426
http = "1"
1527
hyper = { version = "1", default-features = false }
@@ -32,18 +44,6 @@ rustls = { version = "0.23", default-features = false, features = ["tls12"] }
3244
rustls-pemfile = "2"
3345
tokio = { version = "1.0", features = ["io-std", "macros", "net", "rt-multi-thread"] }
3446

35-
[features]
36-
default = ["native-tokio", "http1", "tls12", "logging", "aws-lc-rs"]
37-
aws-lc-rs = ["rustls/aws_lc_rs"]
38-
http1 = ["hyper-util/http1"]
39-
http2 = ["hyper-util/http2"]
40-
webpki-tokio = ["webpki-roots"]
41-
native-tokio = ["rustls-native-certs"]
42-
ring = ["rustls/ring"]
43-
tls12 = ["tokio-rustls/tls12", "rustls/tls12"]
44-
logging = ["log", "tokio-rustls/logging", "rustls/logging"]
45-
fips = ["aws-lc-rs", "rustls/fips"]
46-
4747
[[example]]
4848
name = "client"
4949
path = "examples/client.rs"

0 commit comments

Comments
 (0)