#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

#442 in Rust patterns

Download history 98987/week @ 2024-01-05 102128/week @ 2024-01-12 111887/week @ 2024-01-19 102945/week @ 2024-01-26 100585/week @ 2024-02-02 112473/week @ 2024-02-09 115046/week @ 2024-02-16 129620/week @ 2024-02-23 135798/week @ 2024-03-01 126116/week @ 2024-03-08 119568/week @ 2024-03-15 132786/week @ 2024-03-22 134785/week @ 2024-03-29 131986/week @ 2024-04-05 147217/week @ 2024-04-12 127145/week @ 2024-04-19

566,229 downloads per month
Used in 159 crates (3 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