security-rust 2.1.0

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.
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.87"
name = "security-rust"
version = "2.1.0"
authors = ["erik <erik@erik.xyz>"]
build = false
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"]