Cargo Features

[dependencies]
config-file2 = { version = "0.3.2", default-features = false, features = ["all", "json", "toml", "xml", "yaml", "ron"] }
default all? = toml

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

all = default, json, ron, toml, xml, yaml
json all? = serde_json
toml default all? = toml_crate

Affects error::TomlError

xml all? = quick-xml
yaml all? = serde_yml
ron all? = ron_crate

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_json json?
serde_yml yaml?

Enables serde_yml ^0.0.11

toml_crate toml

Enables toml

quick-xml xml?
ron_crate ron?

Enables ron