Cargo Features

[dependencies]
haphazard = { version = "0.1.8", default-features = false, features = ["std", "regex", "serde"] }
default = std

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

std default

Features from optional dependencies

regex cfg(any()) implicit feature
serde cfg(any()) implicit feature

Enables serde

serde:

A generic serialization/deserialization framework