Cargo Features

[dependencies]
config = { version = "0.15.0", default-features = false, features = ["json", "yaml", "ini", "json5", "convert-case", "preserve_order", "async", "toml", "ron"] }
default = async, convert-case, ini, json, json5, ron, toml, yaml

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

json default = serde_json
yaml default = yaml-rust2
ini default = rust-ini
json5 default = json5_rs

Enables derive of serde

serde:

Provide derive(Serialize, Deserialize) macros.

convert-case default = convert_case
preserve_order = indexmap

Enables indexmap of optional ron and preserve_order of optional serde_json and optional toml

serde_json:

Make serde_json::Map use a representation which maintains insertion order.
This allows data to be read into a Value and written back to a JSON string while preserving the order of map keys in the input.

Affects map::Map

async default = async-trait

Affects source::AsyncSource

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.

async-trait async
toml default
serde_json json
yaml-rust2 yaml
rust-ini ini
ron default
json5_rs json5

Enables json5

indexmap preserve_order?
convert_case convert-case