| 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.71" |
| 20 | license = "ISC" |
| 21 | name = "rustls-webpki" |
| 22 | readme = "README.md" |
| 23 | repository = "https://github.com/rustls/webpki" |
| 24 | version = "0.103.1" |
| 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/rpk_entity.rs" , |
| 41 | "src/subject_name/dns_name.rs" , |
| 42 | "src/subject_name/ip_address.rs" , |
| 43 | "src/subject_name/mod.rs" , |
| 44 | "src/subject_name/name.rs" , |
| 45 | "src/subject_name/verify.rs" , |
| 46 | "src/name/verify.rs" , |
| 47 | "src/name/name.rs" , |
| 48 | "src/signed_data.rs" , |
| 49 | "src/ring_algs.rs" , |
| 50 | "src/alg_tests.rs" , |
| 51 | "src/time.rs" , |
| 52 | "src/trust_anchor.rs" , |
| 53 | "src/x509.rs" , |
| 54 | "src/verify_cert.rs" , |
| 55 | "src/lib.rs" , |
| 56 | |
| 57 | "tests/**" , |
| 58 | ] |
| 59 | |
| 60 | [package.metadata.docs.rs] |
| 61 | all-features = true |
| 62 | rustdoc-args = ["--cfg" , "docsrs" ] |
| 63 | |
| 64 | [package.metadata.cargo_check_external_types] |
| 65 | allowed_external_types = [ |
| 66 | "rustls_pki_types::*" , |
| 67 | "rustls_pki_types" , # To allow re-export. |
| 68 | ] |
| 69 | |
| 70 | [lib] |
| 71 | name = "webpki" |
| 72 | |
| 73 | [features] |
| 74 | default = ["std" ] |
| 75 | alloc = ["ring?/alloc" , "pki-types/alloc" ] |
| 76 | aws-lc-rs = ["dep:aws-lc-rs" , "aws-lc-rs/aws-lc-sys" , "aws-lc-rs/prebuilt-nasm" ] |
| 77 | aws-lc-rs-fips = ["dep:aws-lc-rs" , "aws-lc-rs/fips" ] |
| 78 | ring = ["dep:ring" ] |
| 79 | std = ["alloc" , "pki-types/std" ] |
| 80 | |
| 81 | [dependencies] |
| 82 | aws-lc-rs = { version = "1.9" , optional = true, default-features = false } |
| 83 | pki-types = { package = "rustls-pki-types" , version = "1.11" , default-features = false } |
| 84 | ring = { version = "0.17" , default-features = false, optional = true } |
| 85 | untrusted = "0.9" |
| 86 | |
| 87 | [dev-dependencies] |
| 88 | base64 = "0.22" |
| 89 | bencher = "0.1.5" |
| 90 | bzip2 = "0.5" |
| 91 | once_cell = "1.17.2" |
| 92 | rcgen = { version = "0.13" , default-features = false, features = ["aws_lc_rs" ] } |
| 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 | |