[package]
edition = "2024"
rust-version = "1.87"
name = "security-rust"
version = "2.1.1"
authors = ["erik <erik@erik.xyz>"]
build = false
exclude = [
"CLAUDE.md",
"docs/coin",
"docs/i18n",
"docs/superpowers",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure Rust attack detection library with 32 detectors across 4 categories — injection, protocol, data, and file — plus stateful session, throttling, and risk scoring. Zero framework dependencies."
readme = "README.md"
keywords = [
"security",
"security-rust",
"xss",
"sql-injection",
"waf",
]
categories = [
"security",
"parsing",
]
license = "MIT"
repository = "https://github.com/erikwang2013/security-rust"
[lib]
name = "security_rust"
path = "src/lib.rs"
[[example]]
name = "axum_middleware"
path = "examples/axum_middleware.rs"
[[example]]
name = "waf"
path = "examples/waf.rs"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "invariants"
path = "tests/invariants.rs"
[[test]]
name = "robustness"
path = "tests/robustness.rs"
[[test]]
name = "session"
path = "tests/session.rs"
[[test]]
name = "session_lifecycle"
path = "tests/session_lifecycle.rs"
[[test]]
name = "throttle"
path = "tests/throttle.rs"
[[test]]
name = "throttle_any"
path = "tests/throttle_any.rs"
[dependencies.regex]
version = "1"
[dev-dependencies.axum]
version = "0.8"
[dev-dependencies.tokio]
version = "1"
features = [
"macros",
"rt",
]
[dev-dependencies.tower]
version = "0.5"
features = ["util"]