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