Cloakrs 0.3.0, a Blazing Fast Rust PII scanner and redaction toolkit
โ Rust ๐ 2026-05-24 ๐ค surdeus ๐๏ธ 1Hi everyone,
I just released cloakrs 0.3.0 on crates.io.
Github: GitHub - kadir/cloakrs: A blazingly fast PII detection, masking, and anonymization engine written in Rust. Library + CLI. ยท GitHub
cloakrs is a Rust library and CLI for detecting and masking personally identifiable information in text, logs, JSON, CSV, and SQL dumps. It started as a practical scanner, but this release makes it more useful in day to day privacy workflows.
In 0.3.0 I added person name and physical address recognizers, scanner allow and deny lists, .cloakrs.toml config support, structured JSONL audit logs, and a cloakrs pre-commit command for checking staged files before commit.
There is also a new PromptSanitizer API for LLM workflows. It can replace detected PII with placeholders before sending text to a model, then restore values later from a mapping. I also added a new cloakrs-tracing crate with a RedactLayer for writing sanitized tracing events.
Install:
cargo install cloakrs-cli --locked
Example:
cloakrs audit . --audit-log cloakrs-audit.jsonl
cloakrs pre-commit src/lib.rs README.md --min-confidence 0.8
The crates are published as cloakrs-core, cloakrs-patterns, cloakrs-locales, cloakrs-adapters, cloakrs-tracing, and cloakrs-cli.
I would really appreciate feedback from Rust folks, especially around API ergonomics, false positives in recognizers, and whether the tracing and prompt sanitization APIs feel natural.
Thanks ![]()
1 post - 1 participant
๐ท๏ธ Rust_feed