1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119
|
[package]
name = "rustls"
version = "0.23.35"
edition = "2021"
rust-version = "1.71"
license = "Apache-2.0 OR ISC OR MIT"
readme = "../README.md"
description = "Rustls is a modern TLS library written in Rust."
homepage = "https://github.com/rustls/rustls"
repository = "https://github.com/rustls/rustls"
categories = ["network-programming", "cryptography"]
autobenches = false
autotests = false
exclude = ["src/testdata", "tests/**"]
[features]
default = ["ring", "logging", "std", "tls12"]
brotli = ["dep:brotli", "dep:brotli-decompressor", "std"]
custom-provider = []
logging = ["log"]
ring = ["dep:ring", "webpki/ring"]
std = ["webpki/std", "pki-types/std", "once_cell/std"]
tls12 = []
zlib = ["dep:zlib-rs"]
[dependencies]
brotli = { workspace = true, optional = true }
brotli-decompressor = { workspace = true, optional = true }
hashbrown = { workspace = true, optional = true }
log = { workspace = true, optional = true }
# only required for no-std
once_cell = { workspace = true }
ring = { workspace = true, optional = true }
subtle = { workspace = true }
webpki = { workspace = true }
pki-types = { workspace = true }
zeroize = { workspace = true }
zlib-rs = { workspace = true, optional = true }
[dev-dependencies]
base64 = { workspace = true }
env_logger = { workspace = true }
hex = { workspace = true }
log = { workspace = true }
macro_rules_attribute = { workspace = true }
num-bigint = { workspace = true }
rcgen = { workspace = true }
rustls-native-certs = { workspace = true }
rustls-test = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
time = { workspace = true }
x509-parser = { workspace = true }
[[example]]
name = "test_ca"
path = "examples/internal/test_ca.rs"
required-features = ["aws_lc_rs"]
[[test]]
name = "api"
path = "tests/runners/api.rs"
[[test]]
name = "api_ffdhe"
path = "tests/runners/api_ffdhe.rs"
required-features = ["tls12"]
[[test]]
name = "bogo"
path = "tests/bogo.rs"
[[test]]
name = "client_cert_verifier"
path = "tests/runners/client_cert_verifier.rs"
[[test]]
name = "ech"
path = "tests/ech.rs"
[[test]]
name = "key_log_file_env"
path = "tests/runners/key_log_file_env.rs"
[[test]]
name = "process_provider"
path = "tests/process_provider.rs"
[[test]]
name = "server_cert_verifier"
path = "tests/runners/server_cert_verifier.rs"
[[test]]
name = "unbuffered"
path = "tests/runners/unbuffered.rs"
[package.metadata.docs.rs]
# all non-default features except fips (cannot build on docs.rs environment)
features = ["read_buf", "ring"]
rustdoc-args = ["--cfg", "rustls_docsrs"]
[package.metadata.cargo_check_external_types]
allowed_external_types = [
# ---
"rustls_pki_types",
"rustls_pki_types::*",
]
[package.metadata.cargo-semver-checks.lints]
enum_no_repr_variant_discriminant_changed = "warn"
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = [
"cfg(bench)",
"cfg(coverage_nightly)",
"cfg(read_buf)",
"cfg(rustls_docsrs)",
] }
|