Cargo Features

[dependencies]
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

uncased

Enables uncased of phf_shared

unicase

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. These features may have been created by mistake, and this functionality may be removed in the future.

phf_macros macros?
serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework