#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

#339 in Configuration

Download history 330/week @ 2024-12-14 844/week @ 2024-12-21 855/week @ 2024-12-28 347/week @ 2025-01-04 12/week @ 2025-01-11 4/week @ 2025-01-18 1/week @ 2025-01-25 6/week @ 2025-02-01 59/week @ 2025-02-08 27/week @ 2025-02-15 13/week @ 2025-02-22 3/week @ 2025-03-01

82 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–50MB
~835K SLoC