20 releases
0.1.21 | Jan 6, 2025 |
---|---|
0.1.20 | Jan 4, 2025 |
0.1.17 | Dec 31, 2024 |
#53 in Configuration
2,304 downloads per month
Used in 6 crates
34KB
799 lines
Ferrite Config
Configuration management for the Ferrite image viewer.
Features
- TOML-based configuration file
- Standard XDG configuration paths
- Sensible defaults
- Serialization/deserialization support
Usage
use ferrite_config::FeriteConfig;
// Load existing config
let config = FeriteConfig::load().unwrap_or_default();
// Save config
config.save().expect("Failed to save config");
// Access settings
println!("Cache size: {}", config.cache_size);
println!("Default zoom: {}", config.default_zoom);
Dependencies
~12–49MB
~824K SLoC