[package]
edition = "2024"
rust-version = "1.97"
name = "cribra"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Privacy-first Rust core for detecting, querying, and safely transforming secrets and sensitive data"
documentation = "https://docs.rs/cribra"
readme = "README.md"
keywords = [
"secrets",
"security",
"scanner",
"redaction",
"privacy",
]
categories = [
"development-tools",
"text-processing",
]
license = "MIT"
repository = "https://github.com/Metalymph/cribra"
[features]
default = []
parallel = ["dep:rayon"]
serde = ["dep:serde"]
[lib]
name = "cribra"
path = "src/lib.rs"
[[example]]
name = "custom_rules"
path = "examples/custom_rules.rs"
[[example]]
name = "generate_fixtures"
path = "examples/generate_fixtures.rs"
[[example]]
name = "query_results"
path = "examples/query_results.rs"
[[example]]
name = "scan_basic"
path = "examples/scan_basic.rs"
[[example]]
name = "share_safe"
path = "examples/share_safe.rs"
[[test]]
name = "ambiguous"
path = "tests/ambiguous.rs"
[[test]]
name = "builtins"
path = "tests/builtins.rs"
[[test]]
name = "contextual_contract"
path = "tests/contextual_contract.rs"
[[test]]
name = "custom_rules"
path = "tests/custom_rules.rs"
[[test]]
name = "detection_corpus"
path = "tests/detection_corpus.rs"
[[test]]
name = "detection_corpus_adversarial"
path = "tests/detection_corpus_adversarial.rs"
[[test]]
name = "detection_corpus_collisions"
path = "tests/detection_corpus_collisions.rs"
[[test]]
name = "detection_corpus_formats"
path = "tests/detection_corpus_formats.rs"
[[test]]
name = "display"
path = "tests/display.rs"
[[test]]
name = "explainability"
path = "tests/explainability.rs"
[[test]]
name = "explainability_api"
path = "tests/explainability_api.rs"
[[test]]
name = "golden"
path = "tests/golden.rs"
[[test]]
name = "hardening"
path = "tests/hardening.rs"
[[test]]
name = "parallel"
path = "tests/parallel.rs"
[[test]]
name = "public_api"
path = "tests/public_api.rs"
[[test]]
name = "public_api_contract"
path = "tests/public_api_contract.rs"
[[test]]
name = "query"
path = "tests/query.rs"
[[test]]
name = "regressions"
path = "tests/regressions.rs"
[[test]]
name = "remediation_api"
path = "tests/remediation_api.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "serde_boundary"
path = "tests/serde_boundary.rs"
[[test]]
name = "share_bundle"
path = "tests/share_bundle.rs"
[[test]]
name = "transform_pseudonymization"
path = "tests/transform_pseudonymization.rs"
[[test]]
name = "transform_redact"
path = "tests/transform_redact.rs"
[[test]]
name = "transform_synthesize"
path = "tests/transform_synthesize.rs"
[[test]]
name = "transform_template"
path = "tests/transform_template.rs"
[[bench]]
name = "contextual_tail"
path = "benches/contextual_tail.rs"
harness = false
[[bench]]
name = "isolation"
path = "benches/isolation.rs"
harness = false
[[bench]]
name = "scan"
path = "benches/scan.rs"
harness = false
[[bench]]
name = "v02"
path = "benches/v02.rs"
harness = false
[dependencies.aho-corasick]
version = "1.1.4"
[dependencies.blake3]
version = "1"
[dependencies.rayon]
version = "1.12.0"
optional = true
[dependencies.regex]
version = "1.13.1"
[dependencies.regex-syntax]
version = "0.8.8"
[dependencies.serde]
version = "1.0"
features = [
"derive",
"rc",
]
optional = true
[dev-dependencies.criterion]
version = "0.8.2"
[dev-dependencies.serde_json]
version = "1.0"