Cargo Features

[dependencies]
xpct = { version = "0.5.1", default-features = false, features = ["regex", "json", "float", "casefold", "color", "diff", "unicode-diff", "fmt"] }
default = color, fmt

These default features are set whenever xpct is added without default-features = false somewhere in the dependency tree.

regex

Enables regex

json

Enables serde_json

float

Enables float-cmp

casefold

Enables unicase

color default

Enables colored

diff unicode-diff? = similar

Affects format::diff, matchers::diff

unicode-diff = diff

Enables unicode of similar

fmt default

Affects xpct::format

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.

similar diff? unicode-diff?