Cargo Features

[dependencies]
config_struct = { version = "0.5.1+deprecated", default-features = false, features = ["json-parsing", "ron-parsing", "toml-parsing", "yaml-parsing", "experimental-files-enum"] }
default = toml-parsing

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

json-parsing = serde_json
ron-parsing = ron
toml-parsing default = toml
yaml-parsing = serde_yaml
experimental-files-enum = case

Affects config_struct::files_enum

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.

case experimental-files-enum?
ron ron-parsing?

Enables ron ~0.3.0

serde_json json-parsing?
serde_yaml yaml-parsing?

Enables serde_yaml ~0.7.5

toml toml-parsing

Enables toml ~0.4.6