| Crates.io | confiture |
| lib.rs | confiture |
| version | 0.1.4 |
| created_at | 2022-04-20 20:17:20.885926+00 |
| updated_at | 2022-04-20 20:35:38.258404+00 |
| description | A really simple create to manage config from toml file |
| homepage | |
| repository | |
| max_upload_size | |
| id | 571175 |
| size | 3,358 |
Confiture is a really simple crate to manage config from toml file.
#[derive(Serialize, Deserialize, Debug, Default)]
#[serde(default)]
struct Config {
title: String,
}
fn main() {
let mut cfg = Config::from_toml_file("config.toml").unwrap();
cfg.title = String::from("Jean");
cfg.save_to_file("config.toml").unwrap();
}