Cargo Features

[dependencies]
config-file = { version = "0.2.3", default-features = false, features = ["json", "toml", "xml", "yaml"] }
default = toml

The toml feature is set by default whenever config-file is added without default-features = false somewhere in the dependency tree.

json = serde_json
toml default = toml-crate
xml = serde-xml-rs
yaml = serde_yaml

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.

serde-xml-rs xml?

Enables serde-xml-rs ^0.5

serde_json json?
serde_yaml yaml?

Enables serde_yaml ^0.8

toml-crate toml

Enables toml ^0.5