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
somewhere in the dependency tree.default-features = false - regex
-
Enables regex
- json
-
Enables serde_json
- float
-
Enables float-cmp ^0.9.0
- casefold
-
Enables unicase
- color default
-
Enables colored
- diff unicode-diff? = similar
-
Affects
format::diff
,matchers::diff
… - unicode-diff = diff
- 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.