Cargo Features

phf = { version = "0.11.2", default-features = false, features = ["std", "uncased", "unicase", "macros", "serde"] }
default = std

The std feature is set by default whenever phf is added without default-features = false somewhere in the dependency tree.

std default

Enables std of phf_shared


Enables uncased of phf_shared


Enables unicase of optional phf_macros and phf_shared

macros = phf_macros

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

serde implicit feature

With default (std)