#domain-name #tld #psl #gtld #no-std #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

#277 in Rust patterns

Download history 120710/week @ 2024-03-14 129153/week @ 2024-03-21 130271/week @ 2024-03-28 136069/week @ 2024-04-04 143071/week @ 2024-04-11 156218/week @ 2024-04-18 159428/week @ 2024-04-25 167338/week @ 2024-05-02 157472/week @ 2024-05-09 191718/week @ 2024-05-16 198563/week @ 2024-05-23 222033/week @ 2024-05-30 204071/week @ 2024-06-06 207871/week @ 2024-06-13 194692/week @ 2024-06-20 184333/week @ 2024-06-27

840,009 downloads per month
Used in 170 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