Cargo Features
[dependencies]
publicsuffix = { version = "2.3.0", default-features = false, features = ["anycase", "punycode", "std", "hashbrown"] }
- default = punycode
-
Punycode is enabled by default to be feature parity with the
psl
crate by default, making switching between the 2 work seemlessly out of the box - anycase = unicase
-
Adds support for looking up domain names in any case
- punycode default = idna
-
Adds support for looking up domain names in ascii format (normalised punycode) see
idna::domain_to_ascii
. Sinceidna
doesn't supportno_std
environments this feature disablesno_std
- std
-
Adds support for
std::error::Error
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.