🛡️ rullst-core

Core Primitives Benchmarks

Criterion measurements for HTML escaping, PII masking, and CSRF token generation. Each applies only when its corresponding rendering or middleware path is used.

🔤

HTML Escape

escape_str() is called on every dynamic value inside an html! macro block. Clean inputs return Cow::Borrowed (zero allocation). Malicious inputs allocate once.

🕵️

PII Masking

mask_pii() applies bounded email and payment-card heuristics when the response-masking layer is enabled. It is not complete DLP.

🔑

CSRF Token

generate_csrf_token() generates the 32-character random value used when CSRF middleware needs a new double-submit cookie.

⏳ Loading primitives benchmark data...