#ferrite #settings #image-viewer

bin+lib ferrite-config

Configuration management for Ferrite image viewer

20 releases

0.1.21 Jan 6, 2025
0.1.20 Jan 4, 2025
0.1.17 Dec 31, 2024

#58 in Configuration

Download history 154/week @ 2024-12-11 313/week @ 2024-12-18 1386/week @ 2024-12-25 508/week @ 2025-01-01 24/week @ 2025-01-08 7/week @ 2025-01-15

2,010 downloads per month
Used in 6 crates

GPL-3.0-or-later

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
~816K SLoC