๐Ÿ›ก๏ธ 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...