| Crates.io | tld |
| lib.rs | tld |
| version | 2.37.0 |
| created_at | 2017-01-20 20:55:23.54361+00 |
| updated_at | 2025-11-10 18:19:56.809819+00 |
| description | Top Level domain static hash map, tld list is obtained from of iana.org |
| homepage | https://github.com/pagescrape/tld.rs |
| repository | https://github.com/pagescrape/tld.rs |
| max_upload_size | |
| id | 8147 |
| size | 51,192 |
Top Level domain static hash map, tld list is obtained from of iana.org
extern crate tld;
assert!(tld::exist("com"));
assert!(tld::exist("io"));
assert!(tld::exist("lt"));
assert!(tld::exist("ru"));
assert!(tld::exist("de"));
assert!(!tld::exist(""));
assert!(!tld::exist("moc"));
assert!(tld::TLD.len() > 1400);