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] |
16 | categories = ["cryptography" , "no-std" ] |
17 | description = "Web PKI X.509 Certificate Verification." |
18 | edition = "2021" |
19 | rust-version = "1.61" |
20 | license = "ISC" |
21 | name = "rustls-webpki" |
22 | readme = "README.md" |
23 | repository = "https://github.com/rustls/webpki" |
24 | version = "0.102.2" |
25 | |
26 | include = [ |
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] |
62 | all-features = true |
63 | rustdoc-args = ["--cfg" , "docsrs" ] |
64 | |
65 | [package.metadata.cargo_check_external_types] |
66 | allowed_external_types = [ |
67 | "rustls_pki_types::*" , |
68 | "rustls_pki_types" , # To allow re-export. |
69 | ] |
70 | |
71 | [lib] |
72 | name = "webpki" |
73 | |
74 | [features] |
75 | default = ["std" , "ring" ] |
76 | alloc = ["ring?/alloc" , "pki-types/alloc" ] |
77 | aws_lc_rs = ["dep:aws-lc-rs" ] |
78 | ring = ["dep:ring" ] |
79 | std = ["alloc" , "pki-types/std" ] |
80 | |
81 | [dependencies] |
82 | aws-lc-rs = { version = "1" , optional = true, default-features = false, features = ["aws-lc-sys" ] } |
83 | pki-types = { package = "rustls-pki-types" , version = "1.2" , default-features = false } |
84 | ring = { version = "0.17" , default-features = false, optional = true } |
85 | untrusted = "0.9" |
86 | |
87 | [dev-dependencies] |
88 | base64 = "0.21" |
89 | bencher = "0.1.5" |
90 | bzip2 = "0.4.4" |
91 | once_cell = "1.17.2" |
92 | rcgen = { version = "0.12.0" } |
93 | serde = { version = "1.0" , features = ["derive" ] } |
94 | serde_json = "1.0" |
95 | |
96 | [profile.bench] |
97 | opt-level = 3 |
98 | debug = false |
99 | rpath = false |
100 | lto = true |
101 | debug-assertions = false |
102 | codegen-units = 1 |
103 | |
104 | [profile.release] |
105 | opt-level = 3 |
106 | debug = false |
107 | rpath = false |
108 | lto = true |
109 | debug-assertions = false |
110 | codegen-units = 1 |
111 | |
112 | [[bench]] |
113 | name = "benchmarks" |
114 | path = "benches/benchmark.rs" |
115 | harness = false |
116 | |