use-domain
use-domain provides lightweight helpers for validating, normalizing, and inspecting domain names and hostnames.
Experimental: this crate is below 0.3.0 and the API may change.
Example Usage
use ;
assert_eq!;
assert_eq!;
assert_eq!;
Scope
- Domain and hostname validation.
- Domain normalization and label splitting.
- Small inspection helpers such as depth and subdomain checks.
Non-goals
- Complete public suffix list support.
- IDNA conversion.
- DNS lookup.
- Certificate validation.
License
Licensed under MIT OR Apache-2.0.