1[package]
2name = "hyper-rustls"
3version = "0.27.5"
4edition = "2021"
5rust-version = "1.71"
6license = "Apache-2.0 OR ISC OR MIT"
7readme = "README.md"
8description = "Rustls+hyper integration for pure rust HTTPS"
9homepage = "https://github.com/rustls/hyper-rustls"
10repository = "https://github.com/rustls/hyper-rustls"
11documentation = "https://docs.rs/hyper-rustls/"
12
13[features]
14default = ["native-tokio", "http1", "tls12", "logging", "aws-lc-rs"]
15aws-lc-rs = ["rustls/aws_lc_rs"]
16fips = ["aws-lc-rs", "rustls/fips"]
17http1 = ["hyper-util/http1"]
18http2 = ["hyper-util/http2"]
19logging = ["log", "tokio-rustls/logging", "rustls/logging"]
20native-tokio = ["rustls-native-certs"]
21ring = ["rustls/ring"]
22tls12 = ["tokio-rustls/tls12", "rustls/tls12"]
23webpki-tokio = ["webpki-roots"]
24
25[dependencies]
26http = "1"
27hyper = { version = "1", default-features = false }
28hyper-util = { version = "0.1", default-features = false, features = ["client-legacy", "tokio"] }
29log = { version = "0.4.4", optional = true }
30pki-types = { package = "rustls-pki-types", version = "1" }
31rustls-native-certs = { version = "0.8", optional = true }
32rustls-platform-verifier = { version = "0.5", optional = true }
33rustls = { version = "0.23", default-features = false }
34tokio = "1.0"
35tokio-rustls = { version = "0.26", default-features = false }
36tower-service = "0.3"
37webpki-roots = { version = "0.26", optional = true }
38futures-util = { version = "0.3", default-features = false }
39
40[dev-dependencies]
41cfg-if = "1"
42http-body-util = "0.1"
43hyper-util = { version = "0.1", default-features = false, features = ["server-auto"] }
44rustls = { version = "0.23", default-features = false, features = ["tls12"] }
45rustls-pemfile = "2"
46tokio = { version = "1.0", features = ["io-std", "macros", "net", "rt-multi-thread"] }
47
48[[example]]
49name = "client"
50path = "examples/client.rs"
51required-features = ["native-tokio", "http1"]
52
53[[example]]
54name = "server"
55path = "examples/server.rs"
56required-features = ["aws-lc-rs"]
57
58[package.metadata.docs.rs]
59no-default-features = true
60features = [
61 "http1",
62 "http2",
63 "logging",
64 "native-tokio",
65 "ring",
66 "rustls-platform-verifier",
67 "tls12",
68 "webpki-tokio",
69]
70rustdoc-args = ["--cfg", "docsrs"]
71