Crate features / config
Feature flags · config 0.15.27 · from crates.io 2026-10-24
config features: what each one does, and the line to copy
Short answerconfig 0.15.27 has 9 features. By default it turns on toml, json, yaml, ini, ron, json5, convert-case, async; add default-features = false to start from nothing. It needs Rust 1.88.0 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
async | yes | async-trait |
convert-case | yes | convert_case |
corn | dep:corn | |
ini | yes | rust-ini |
json | yes | serde_json |
json5 | yes | dep:json5, dep:serde-untagged |
preserve_order | indexmap, toml?/preserve_order, serde_json?/preserve_order, ron?/indexmap | |
toml | yes | dep:toml |
yaml | yes | yaml-rust2 |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version config declares (rust-version), and the release that changed it:
- 0.13.4 (2023-11-22): Rust 1.56.0
- 0.14.0 (2024-02-01): no rust-version declared
- 0.14.1 (2024-10-23): Rust 1.75.0
- 0.15.20 (2026-03-12): Rust 1.76.0
- 0.15.21 (2026-03-12): Rust 1.85.0
- 0.15.26 (2026-09-21): Rust 1.88.0
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p config --precise <version>, or use resolver 3, which picks compatible versions for you.
More on config
Real downloads, dependents and alternatives: config crate data (252.4K real downloads a day, 1,665 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2024
Up next
Before you depend on itconfig crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?