Skip to content
πŸ›‹ Zero-boilerplate configuration management in Rust
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src Adding better (any) documentation (#7) Nov 25, 2018
.gitignore
Cargo.toml
LICENSE
README.md

README.md

confy

Join the chat at https://gitter.im/rust-clique/confy

Zero-boilerplate configuration management.

Focus on storing the right data, instead of worrying about how to store it.

#[derive(Serialize, Deserialize)]
struct MyConfig {
    version: u8,
    api_key: String,
}

/// `MyConfig` implements `Default`
impl ::std::ops::Default for MyConfig {
    fn default() -> Self { Self { version: 0, api_key: "".into() } }
}

fn main() -> Result<(), ::std::io::Error> {
    let cfg = confy::load("my-app-name")?;
}
You can’t perform that action at this time.