| Crates.io | tld |
| lib.rs | tld |
| version | 2.36.0 |
| created_at | 2017-01-20 20:55:23.54361+00 |
| updated_at | 2024-08-06 17:42:12.07234+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 | 49,685 |
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);