# 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.95"
name = "ocsp-staple"
version = "0.0.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Build OCSP requests, parse responses, and extract responder URLs from a certificate's AIA extension."
readme = "README.md"
keywords = [
    "ocsp",
    "tls",
    "stapling",
    "certificates",
    "x509",
]
categories = [
    "cryptography",
    "network-programming",
]
license = "MIT"
repository = "https://github.com/canmi21/vane"

[features]
default = []
fetch = [
    "dep:hyper",
    "dep:hyper-util",
    "dep:http-body-util",
    "dep:tokio",
    "dep:url",
]

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

[dependencies.bytes]
version = "1"

[dependencies.der]
version = "0.7"

[dependencies.http-body-util]
version = "0.1"
optional = true

[dependencies.hyper]
version = "1"
features = [
    "client",
    "http1",
]
optional = true

[dependencies.hyper-util]
version = "0.1"
features = ["tokio"]
optional = true

[dependencies.sha1]
version = "0.10"
features = ["oid"]

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = [
    "net",
    "time",
    "rt",
]
optional = true

[dependencies.url]
version = "2"
optional = true

[dependencies.x509-cert]
version = "0.2"

[dependencies.x509-ocsp]
version = "0.2"
features = [
    "builder",
    "std",
]
default-features = false

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

[dev-dependencies.rcgen]
version = "0.14"

[dev-dependencies.tokio]
version = "1"
features = [
    "macros",
    "rt",
]

[lints.clippy]
cognitive_complexity = "warn"
doc_markdown = "allow"
similar_names = "allow"
unnecessary_wraps = "allow"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
unreachable_pub = "warn"
unsafe_code = "deny"
