#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

#259 in Rust patterns

Download history 231341/week @ 2024-09-13 280695/week @ 2024-09-20 258803/week @ 2024-09-27 298540/week @ 2024-10-04 266725/week @ 2024-10-11 303878/week @ 2024-10-18 324066/week @ 2024-10-25 285101/week @ 2024-11-01 306093/week @ 2024-11-08 287413/week @ 2024-11-15 225861/week @ 2024-11-22 214229/week @ 2024-11-29 301654/week @ 2024-12-06 280047/week @ 2024-12-13 114332/week @ 2024-12-20 74394/week @ 2024-12-27

812,031 downloads per month
Used in 203 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