Use configuration file in the HOME directory
```rust use home_config::HomeConfig;
let config = HomeConfig::new("app", "config"); // Linux: /home/name/.config/app/config // macOS: /Users/name/.config/app/config // Windows: C:\Users\name.config\app\config
// Write config.save("123456789").unwrap();
// Read let data = config.readtostring().unwrap(); // 123456789 ```
Cargo.toml
toml
home-config = { version = "*", features = ["json", "yaml"] }
```rust use home_config::HomeConfig; use serde::{Deserialize, Serialize};
struct Options { name: String, age: u32, }
let config = HomeConfig::new("app", "config.json");
// Parse
let options = config.json::
// Save to file config.save_json(&options).unwrap(); ```