tld

Crates.iotld
lib.rstld
version2.36.0
created_at2017-01-20 20:55:23.54361+00
updated_at2024-08-06 17:42:12.07234+00
descriptionTop Level domain static hash map, tld list is obtained from of iana.org
homepagehttps://github.com/pagescrape/tld.rs
repositoryhttps://github.com/pagescrape/tld.rs
max_upload_size
id8147
size49,685
Ernestas Poskus (ernestas-poskus)

documentation

https://docs.rs/tld

README

tld Rust

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);
Commit count: 90

cargo fmt