Cargo Features

[dependencies]
toml = { version = "0.8.22", default-features = false, features = ["parse", "display", "unbounded", "preserve_order"] }
default = display, parse

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

parse default

Enables parse of toml_edit

Affects de::from_str, de::Deserializer, de::ValueDeserializer

display default

Enables display of toml_edit

Affects ser::to_string, ser::to_string_pretty, ser::Serializer, ser_value::ValueSerializer

unbounded

Provide a method disable_recursion_limit to parse arbitrarily deep structures without any consideration for overflowing the stack. Additionally you will need to be careful around other recursive operations on the parsed result which may overflow the stack after deserialization has completed, including,
but not limited to, Display and Debug and Drop impls.

Enables unbounded of optional toml_edit

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.

indexmap preserve_order?