#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

#53 in Configuration

Download history 135/week @ 2024-12-10 247/week @ 2024-12-17 1380/week @ 2024-12-24 559/week @ 2024-12-31 62/week @ 2025-01-07

2,304 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
~824K SLoC