http-security-headers 0.2.0

Type-safe, framework-agnostic HTTP security headers with Tower middleware support
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 = "2021"
rust-version = "1.75.0"
name = "http-security-headers"
version = "0.2.0"
authors = ["Daniel Curtis <drc@danielryancurtis.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Type-safe, framework-agnostic HTTP security headers with Tower middleware support"
documentation = "https://docs.rs/http-security-headers"
readme = "README.md"
keywords = [
    "security",
    "headers",
    "middleware",
    "http",
    "tower",
]
categories = [
    "web-programming",
    "network-programming",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/danielrcurtis/http-security-headers"

[features]
actix = [
    "middleware",
    "actix-web",
    "futures-util",
]
axum = [
    "middleware",
    "axum-core",
]
default = []
metrics = [
    "metrics-rs",
    "observability",
]
middleware = [
    "tower",
    "http",
    "http-body",
    "pin-project-lite",
]
observability = ["tracing"]
validation = ["regex"]

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

[[example]]
name = "actix_basic"
path = "examples/actix_basic.rs"

[[example]]
name = "axum_basic"
path = "examples/axum_basic.rs"

[[example]]
name = "axum_custom"
path = "examples/axum_custom.rs"

[[test]]
name = "middleware_axum"
path = "tests/middleware_axum.rs"

[dependencies.actix-web]
version = "4.11"
optional = true

[dependencies.axum-core]
version = "0.5.5"
optional = true

[dependencies.futures-util]
version = "0.3.31"
optional = true

[dependencies.http]
version = "1.3.1"
optional = true

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

[dependencies.metrics-rs]
version = "0.24.2"
optional = true
package = "metrics"

[dependencies.pin-project-lite]
version = "0.2.16"
optional = true

[dependencies.regex]
version = "1.12.2"
optional = true

[dependencies.thiserror]
version = "2.0"

[dependencies.tower]
version = "0.5.2"
optional = true

[dependencies.tracing]
version = "0.1.41"
optional = true

[dev-dependencies.axum]
version = "0.8.6"

[dev-dependencies.bytes]
version = "1.10.1"

[dev-dependencies.http]
version = "1.3.1"

[dev-dependencies.http-body-util]
version = "0.1.3"

[dev-dependencies.hyper]
version = "1.7"
features = ["full"]

[dev-dependencies.tokio]
version = "1.40"
features = [
    "full",
    "test-util",
]

[dev-dependencies.tower]
version = "0.5.2"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1