x509-validator 0.2.0

X.509 certificate chain validation with RFC 5280 and server-identity policies.
Documentation
# 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 = "2024"
rust-version = "1.88"
name = "x509-validator"
version = "0.2.0"
authors = [
    "tkhp",
    "namecare",
]
build = false
exclude = ["tests/**"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "X.509 certificate chain validation with RFC 5280 and server-identity policies."
homepage = "https://github.com/namecare/x509-validator"
documentation = "https://docs.rs/x509-validator"
readme = "README.md"
keywords = [
    "crypto",
    "x509",
]
categories = [
    "network-programming",
    "cryptography",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/namecare/x509-validator"
resolver = "2"

[package.metadata.docs.rs]
all-features = true

[package.metadata.cargo_check_external_types]
allowed_external_types = [
    "x509_parser::*",
    "asn1_rs",
    "asn1_rs::*",
    "oid_registry",
    "der_parser",
]

[features]
aws_lc = [
    "dep:aws-lc-rs",
    "dep:aws-lc-sys",
]
ring = ["dep:ring"]
rust_crypto = [
    "dep:rsa",
    "dep:p256",
    "dep:p384",
    "dep:ed25519-dalek",
    "dep:sha1",
    "dep:sha2",
    "dep:signature",
]

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

[dependencies.aws-lc-rs]
version = "1.18.0"
optional = true

[dependencies.aws-lc-sys]
version = "0.44.0"
optional = true

[dependencies.ed25519-dalek]
version = "3.0.0"
optional = true

[dependencies.p256]
version = "0.14.0"
features = ["ecdsa"]
optional = true

[dependencies.p384]
version = "0.14.0"
features = ["ecdsa"]
optional = true

[dependencies.ring]
version = "0.17.14"
optional = true

[dependencies.rsa]
version = "0.10.0-rc.18"
optional = true

[dependencies.sha1]
version = "0.11.0"
features = ["oid"]
optional = true

[dependencies.sha2]
version = "0.11.0"
features = ["oid"]
optional = true

[dependencies.signature]
version = "3.0.0"
optional = true

[dependencies.thiserror]
version = "2.0.20"

[dependencies.x509-parser]
version = "0.18.1"

[dev-dependencies.rand]
version = "0.10.2"
features = ["thread_rng"]

[dev-dependencies.rsa]
version = "0.10.0-rc.18"
features = ["hazmat"]

[lints.clippy]
alloc_instead_of_core = "warn"
cloned_instead_of_copied = "warn"
manual_let_else = "warn"
needless_bitwise_bool = "warn"
needless_collect = "warn"
needless_pass_by_ref_mut = "warn"
new_without_default = "allow"
or_fun_call = "warn"
redundant_clone = "warn"
std_instead_of_core = "warn"
too_many_arguments = "allow"
upper_case_acronyms = "warn"
use_self = "warn"

[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(bench)",
    "cfg(coverage_nightly)",
]