Cargo Features

toml = { version = "0.8.8", default-features = false, features = ["parse", "display", "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::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.

indexmap preserve_order?

With default (std)