# 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"
name = "dbmcp-pii"
version = "0.12.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PII analyzer and anonymizer for dbmcp"
homepage = "https://dbmcp.haymon.ai"
readme = "README.md"
license = "MIT"
repository = "https://github.com/haymon-ai/dbmcp"

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

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

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

[[bench]]
name = "analyze"
path = "benches/analyze.rs"
harness = false

[[bench]]
name = "anonymize"
path = "benches/anonymize.rs"
harness = false

[[bench]]
name = "redact"
path = "benches/redact.rs"
harness = false

[dependencies.base64]
version = "0.22"

[dependencies.bech32]
version = "0.11"

[dependencies.bs58]
version = "0.5"
features = ["check"]

[dependencies.dbmcp-config]
version = "0.12.0"

[dependencies.fancy-regex]
version = "0.18"

[dependencies.rmcp]
version = "1.7"
features = [
    "server",
    "transport-io",
    "transport-streamable-http-server",
]

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.11"

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.toml]
version = "1"

[lints.clippy]
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
struct_excessive_bools = "allow"

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

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

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

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

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

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

[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_lifetimes = "warn"
