|0.2.3||Sep 2, 2022|
|0.2.0||Jun 11, 2022|
|0.1.10||Jun 9, 2022|
#254 in Data structures
2,001 downloads per month
Used in 2 crates
Fully Qualified Domain Name
This crate allows basic manipulation of FQDN with an inner representation compatible with the RFC 1035.
So, all comparisons between character strings (e.g., labels, domain names, etc.) are done in a case-insensitive manner. Of course, FQDN hashing follows this behaviour.
Notice that this RFC introduces some size limits which are not defaulty
set by this crate.
strict-rfc-1035 activates all of them
but each of them could be activated independently of the others:
- labels are limited to 63 chars (
- names are limited to 255 chars (
- labels should start with a letter (
- labels should only contain letters, digits and hyphens (
- FQDN should end by a period (
domain-name-should-have-trailing-dot): notice that activating this feature modifies the behaviour of
Displaywhich adds a period at the end of the FQDN.
No runtime deps