# 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.85"
name = "llm-guard"
version = "0.2.0"
authors = ["Sriram <marirs@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Zero-copy guardrails for LLM input/output. Pure-Rust scanners (prompt-injection, role-override, secret leakage, PII, invisible text, deobfuscation, token limit)."
readme = "README.md"
keywords = [
    "llm",
    "safety",
    "guard",
    "prompt-injection",
    "security",
]
categories = ["text-processing"]
license = "MIT OR Apache-2.0"

[features]
fuzzy = []

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

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

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

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

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

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

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

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

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

[dependencies.aho-corasick]
version = "1"

[dependencies.base64]
version = "0.22"

[dependencies.regex]
version = "1"

[dependencies.unicode-security]
version = "0.1"

[lints.clippy]
module_name_repetitions = "allow"

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

[lints.rust]
unsafe_code = "deny"
