graze

Rust build status badge Clippy check status badge Rustfmt check status badge

What is graze?

graze is a zero-boilerplate configuration library.

graze itself does not use serde as a dependency, but can easily be used alongside the serde ecosystem.

Functions

Examples

Load a configuration using the toml crate

```rust use serde::Deserialize;

[derive(Deserialize)]

struct Config { message: String }

fn main() { let config = graze::loadfrompath("Config.toml", |c| toml::from_str(c)) .expect("Could not load configuration");

println!("{}", config.message);

} ```