Skip to main content

Module canonical

Module canonical 

Source
Expand description

Canonical email keys for binding and verification lookups.

Canonicalization splits on the final at sign, lowercases both components, and expands the German sharp s. It does not otherwise normalize mailbox or domain syntax.

Re-exportsยง

use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’

Constantsยง

MAX_EMAIL_LEN ๐Ÿ”’
Upper bound on an email address length, applied before canonicalization so a pathological input cannot drive unbounded work.

Functionsยง

canonicalize_email
Canonicalizes an email address for storage and matching.
case_fold ๐Ÿ”’
Applies the serviceโ€™s per-character email case fold.