Expand description
Shared low-level format validators.
These live in cloudillo-types so that both the high-level Action DSL
(cloudillo-action) and the low-level federation request client
(cloudillo-core) can use the exact same definition without creating a
dependency cycle between those crates.
Functionsยง
- canonicalize_
dns_ host - Canonical form of a DNS host name โ the same UTS #46 U-label
canonicalize_id_tagproduces, without the id_tag length policy. - canonicalize_
id_ tag - Canonical stored form of an id_tag: the UTS #46 U-label โ decoded Unicode, case-folded, NFC-normalised.
- dns_
host_ to_ unicode_ lossy - The canonical U-label form of a DNS host, falling back to the input verbatim when it cannot be decoded.
- id_
tag_ to_ ascii - The A-label (punycode) form, for DNS, URLs and TLS. Never store this โ
canonicalize_id_tagdefines the stored form. - id_
tag_ to_ ascii_ lossy - The A-label for use in a hostname, falling back to the input verbatim when it cannot be encoded.
- validate_
id_ tag - Validate an id_tag:
trueiff it is already canonical.