Cargo Features

[dependencies]
publicsuffix = { version = "2.2.3", 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. Since idna doesn't support no_std environments this feature disables no_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.

hashbrown implicit feature

Enables hashbrown ^0.12.3

Optional dependencies

idna punycode

Enables idna ^0.3

unicase anycase?