#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

#253 in Rust patterns

Download history 202035/week @ 2024-07-21 195415/week @ 2024-07-28 193203/week @ 2024-08-04 224639/week @ 2024-08-11 237001/week @ 2024-08-18 238512/week @ 2024-08-25 222114/week @ 2024-09-01 257240/week @ 2024-09-08 231102/week @ 2024-09-15 270275/week @ 2024-09-22 269310/week @ 2024-09-29 298865/week @ 2024-10-06 268923/week @ 2024-10-13 309967/week @ 2024-10-20 299623/week @ 2024-10-27 311242/week @ 2024-11-03

1,200,873 downloads per month
Used in 197 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