1# Copyright 2015 Brian Smith.
2#
3# Permission to use, copy, modify, and/or distribute this software for any
4# purpose with or without fee is hereby granted, provided that the above
5# copyright notice and this permission notice appear in all copies.
6#
7# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
8# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
9# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR
10# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
11# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
12# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
13# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
14
15[package]
16categories = ["cryptography", "no-std"]
17description = "Web PKI X.509 Certificate Verification."
18edition = "2021"
19rust-version = "1.61"
20license = "ISC"
21name = "rustls-webpki"
22readme = "README.md"
23repository = "https://github.com/rustls/webpki"
24version = "0.102.2"
25
26include = [
27 "Cargo.toml",
28
29 "/LICENSE",
30 "README.md",
31
32 "src/aws_lc_rs_algs.rs",
33 "src/calendar.rs",
34 "src/cert.rs",
35 "src/crl/mod.rs",
36 "src/crl/types.rs",
37 "src/der.rs",
38 "src/end_entity.rs",
39 "src/error.rs",
40 "src/subject_name/dns_name.rs",
41 "src/subject_name/ip_address.rs",
42 "src/subject_name/mod.rs",
43 "src/subject_name/name.rs",
44 "src/subject_name/verify.rs",
45 "src/name/verify.rs",
46 "src/name/name.rs",
47 "src/signed_data.rs",
48 "src/ring_algs.rs",
49 "src/alg_tests.rs",
50 "src/time.rs",
51 "src/trust_anchor.rs",
52 "src/x509.rs",
53 "src/verify_cert.rs",
54 "src/lib.rs",
55
56 "src/data/**/*",
57
58 "tests/**",
59]
60
61[package.metadata.docs.rs]
62all-features = true
63rustdoc-args = ["--cfg", "docsrs"]
64
65[package.metadata.cargo_check_external_types]
66allowed_external_types = [
67 "rustls_pki_types::*",
68 "rustls_pki_types", # To allow re-export.
69]
70
71[lib]
72name = "webpki"
73
74[features]
75default = ["std", "ring"]
76alloc = ["ring?/alloc", "pki-types/alloc"]
77aws_lc_rs = ["dep:aws-lc-rs"]
78ring = ["dep:ring"]
79std = ["alloc", "pki-types/std"]
80
81[dependencies]
82aws-lc-rs = { version = "1", optional = true, default-features = false, features = ["aws-lc-sys"] }
83pki-types = { package = "rustls-pki-types", version = "1.2", default-features = false }
84ring = { version = "0.17", default-features = false, optional = true }
85untrusted = "0.9"
86
87[dev-dependencies]
88base64 = "0.21"
89bencher = "0.1.5"
90bzip2 = "0.4.4"
91once_cell = "1.17.2"
92rcgen = { version = "0.12.0" }
93serde = { version = "1.0", features = ["derive"] }
94serde_json = "1.0"
95
96[profile.bench]
97opt-level = 3
98debug = false
99rpath = false
100lto = true
101debug-assertions = false
102codegen-units = 1
103
104[profile.release]
105opt-level = 3
106debug = false
107rpath = false
108lto = true
109debug-assertions = false
110codegen-units = 1
111
112[[bench]]
113name = "benchmarks"
114path = "benches/benchmark.rs"
115harness = false
116