blob: 28a5601e6c554669b0094926f4ee706316599ac6 [file] [log] [blame]
Yiming Jing36903022021-07-16 12:51:10 -07001# 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]
16authors = ["Brian Smith <brian@briansmith.org>"]
17categories = ["cryptography", "no-std"]
18description = "Web PKI X.509 Certificate Verification."
19documentation = "https://briansmith.org/rustdoc/webpki/"
20edition = "2018"
21license-file = "LICENSE"
22name = "webpki"
23readme = "README.md"
24repository = "https://github.com/briansmith/webpki"
25version = "0.22.0"
26
27include = [
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]
64all-features = true
65
66[lib]
67name = "webpki"
68
69[features]
70alloc = ["ring/alloc"]
71std = ["alloc"]
72
73[dependencies]
74ring = { version = "0.16.19", default-features = false }
75untrusted = "0.7.1"
76
77[dev-dependencies]
78base64 = "0.9.1"
79
80[profile.bench]
81opt-level = 3
82debug = false
83rpath = false
84lto = true
85debug-assertions = false
86codegen-units = 1
87
88[profile.release]
89opt-level = 3
90debug = false
91rpath = false
92lto = true
93debug-assertions = false
94codegen-units = 1