1[package]
2name = "rustls"
3version = "0.22.2"
4edition = "2021"
5rust-version = "1.61"
6license = "Apache-2.0 OR ISC OR MIT"
7readme = "../README.md"
8description = "Rustls is a modern TLS library written in Rust."
9homepage = "https://github.com/rustls/rustls"
10repository = "https://github.com/rustls/rustls"
11categories = ["network-programming", "cryptography"]
12autobenches = false
13build = "build.rs"
14
15[build-dependencies]
16rustversion = { version = "1.0.6", optional = true }
17
18[dependencies]
19aws-lc-rs = { version = "1.5", optional = true }
20log = { version = "0.4.4", optional = true }
21ring = { version = "0.17", optional = true }
22subtle = { version = "2.5.0", default-features = false }
23webpki = { package = "rustls-webpki", version = "0.102.1", features = ["std"], default-features = false }
24pki-types = { package = "rustls-pki-types", version = "1", features = ["std"] }
25zeroize = "1.6.0"
26
27[features]
28default = ["logging", "ring", "tls12"]
29logging = ["log"]
30aws_lc_rs = ["dep:aws-lc-rs", "webpki/aws_lc_rs"]
31ring = ["dep:ring", "webpki/ring"]
32tls12 = []
33read_buf = ["rustversion"]
34
35[dev-dependencies]
36base64 = "0.21"
37bencher = "0.1.5"
38env_logger = "0.10"
39log = "0.4.4"
40rustls-pemfile = "2"
41webpki-roots = "0.26"
42
43[[example]]
44name = "bogo_shim"
45path = "examples/internal/bogo_shim.rs"
46required-features = ["tls12"]
47
48[[example]]
49name = "bench"
50path = "examples/internal/bench.rs"
51
52[[bench]]
53name = "benchmarks"
54path = "benches/benchmarks.rs"
55harness = false
56required-features = ["ring"]
57
58[package.metadata.docs.rs]
59all-features = true
60rustdoc-args = ["--cfg", "docsrs"]
61
62[package.metadata.cargo_check_external_types]
63allowed_external_types = [
64 "rustls_pki_types",
65 "rustls_pki_types::*",
66]
67