Cargo Features
[dependencies]
toml = { version = "0.8.19", default-features = false, features = ["parse", "display", "preserve_order"] }
- default = display, parse
-
These default features are set whenever
toml
is added without
somewhere in the dependency tree.default-features = false - parse default
-
Affects
de::from_str
,de::Deserializer
,de::ValueDeserializer
… - display default
-
Affects
ser::to_string
,ser::to_string_pretty
,ser::Serializer
,ser::ValueSerializer
… - preserve_order = indexmap
-
Use indexmap rather than BTreeMap as the map type of toml::Value.
This allows data to be read into a Value and written back to a TOML string while preserving the order of map keys in the input.
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.