Yiming Jing | 3690302 | 2021-07-16 12:51:10 -0700 | [diff] [blame] | 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 | authors = ["Brian Smith <brian@briansmith.org>"] |
| 17 | categories = ["cryptography", "no-std"] |
| 18 | description = "Web PKI X.509 Certificate Verification." |
| 19 | documentation = "https://briansmith.org/rustdoc/webpki/" |
| 20 | edition = "2018" |
| 21 | license-file = "LICENSE" |
| 22 | name = "webpki" |
| 23 | readme = "README.md" |
| 24 | repository = "https://github.com/briansmith/webpki" |
| 25 | version = "0.22.0" |
| 26 | |
| 27 | include = [ |
| 28 | "Cargo.toml", |
| 29 | |
| 30 | "LICENSE", |
| 31 | "README.md", |
| 32 | |
| 33 | "src/calendar.rs", |
| 34 | "src/cert.rs", |
| 35 | "src/der.rs", |
| 36 | "src/end_entity.rs", |
| 37 | "src/error.rs", |
| 38 | "src/name.rs", |
| 39 | "src/name/dns_name.rs", |
| 40 | "src/name/ip_address.rs", |
| 41 | "src/name/verify.rs", |
| 42 | "src/signed_data.rs", |
| 43 | "src/time.rs", |
| 44 | "src/trust_anchor.rs", |
| 45 | "src/verify_cert.rs", |
| 46 | "src/lib.rs", |
| 47 | |
| 48 | "src/data/**/*", |
| 49 | |
| 50 | "tests/dns_name_tests.rs", |
| 51 | "tests/integration.rs", |
| 52 | "tests/misc/serial_neg.der", |
| 53 | "tests/misc/serial_zero.der", |
| 54 | "tests/netflix/ca.der", |
| 55 | "tests/netflix/ee.der", |
| 56 | "tests/netflix/inter.der", |
| 57 | "tests/ed25519/ca.der", |
| 58 | "tests/ed25519/ee.der", |
| 59 | |
| 60 | "third-party/chromium/**/*", |
| 61 | ] |
| 62 | |
| 63 | [package.metadata.docs.rs] |
| 64 | all-features = true |
| 65 | |
| 66 | [lib] |
| 67 | name = "webpki" |
| 68 | |
| 69 | [features] |
| 70 | alloc = ["ring/alloc"] |
| 71 | std = ["alloc"] |
| 72 | |
| 73 | [dependencies] |
| 74 | ring = { version = "0.16.19", default-features = false } |
| 75 | untrusted = "0.7.1" |
| 76 | |
| 77 | [dev-dependencies] |
| 78 | base64 = "0.9.1" |
| 79 | |
| 80 | [profile.bench] |
| 81 | opt-level = 3 |
| 82 | debug = false |
| 83 | rpath = false |
| 84 | lto = true |
| 85 | debug-assertions = false |
| 86 | codegen-units = 1 |
| 87 | |
| 88 | [profile.release] |
| 89 | opt-level = 3 |
| 90 | debug = false |
| 91 | rpath = false |
| 92 | lto = true |
| 93 | debug-assertions = false |
| 94 | codegen-units = 1 |