#domain-name #tld #psl #gtld #cctld

no-std psl-types

Common types for the public suffix implementation crates

12 stable releases

2.0.11 Aug 10, 2022
2.0.10 Dec 9, 2021
2.0.9 Nov 30, 2021
2.0.7 Mar 24, 2021

#242 in Rust patterns

Download history 171080/week @ 2024-07-04 189745/week @ 2024-07-11 187860/week @ 2024-07-18 205191/week @ 2024-07-25 185286/week @ 2024-08-01 224547/week @ 2024-08-08 231243/week @ 2024-08-15 232443/week @ 2024-08-22 218339/week @ 2024-08-29 252842/week @ 2024-09-05 244900/week @ 2024-09-12 256689/week @ 2024-09-19 262619/week @ 2024-09-26 295242/week @ 2024-10-03 266535/week @ 2024-10-10 297314/week @ 2024-10-17

1,179,216 downloads per month
Used in 196 crates (4 directly)

MIT/Apache

13KB
338 lines

PSL Types

Common types for the public suffix implementation crates. This was made for the psl and publicsuffix crates but it can be used by any implementation.


lib.rs:

Common types for the public suffix implementation crates

The types in this crate assume that the input is valid UTF-8 encoded domain names. If input is potentially invalid, use a higher level crate like the addr crate.

Some implentations may also assume that the domain name is in lowercase and/or may only support looking up unicode domain names.

No runtime deps