Cargo Features
[dependencies]
facet-toml = { version = "0.25.6", default-features = false, features = ["std", "alloc", "deserialize", "serialize", "rich-diagnostics"] }
- default = deserialize, rich-diagnostics, serialize, std
-
These default features are set whenever
facet-toml
is added without
somewhere in the dependency tree.default-features = false - std default rich-diagnostics = alloc
-
Enables std of facet-core, facet-reflect, optional facet-serialize, and num-traits
facet-reflect:
Enable the standard library features
- alloc deserialize serialize std
-
Enables alloc of facet-core, facet-reflect, and optional facet-serialize
facet-reflect:
Enable the allocation features
Affects
serialize::to_string
… - deserialize default = alloc
-
Enables toml_edit
- serialize default = alloc
-
Enables facet-serialize, display of toml_edit
- rich-diagnostics default = std
-
Enables ariadne
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.