# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.60"
name = "rustls-pki-types"
version = "1.14.1"
build = false
include = [
    "Cargo.toml",
    "LICENSE-APACHE",
    "LICENSE-MIT",
    "src/**/*.rs",
    "README.md",
    "src/data/*.der",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Shared types for the rustls PKI ecosystem"
homepage = "https://github.com/rustls/pki-types"
documentation = "https://docs.rs/rustls-pki-types"
readme = "README.md"
categories = [
    "network-programming",
    "data-structures",
    "cryptography",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/rustls/pki-types"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "rustls_pki_types_docsrs",
]

[package.metadata.cargo_check_external_types]
allowed_external_types = ["zeroize::Zeroize"]

[features]
alloc = ["dep:zeroize"]
default = ["alloc"]
std = ["alloc"]
web = ["web-time"]

[lib]
name = "rustls_pki_types"
path = "src/lib.rs"

[dependencies.zeroize]
version = "1"
optional = true

[target.'cfg(all(target_family = "wasm", target_os = "unknown"))'.dependencies.web-time]
version = "1"
optional = true

[target.'cfg(all(target_os = "linux", target_arch = "x86_64"))'.dev-dependencies.crabgrind]
version = "=0.1.9"

[lints.rust]
elided_lifetimes_in_paths = "warn"
trivial_numeric_casts = "warn"
unnameable_types = "warn"
unreachable_pub = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_qualifications = "warn"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(rustls_pki_types_docsrs)"]
