Expand description
Streamdown Config
This crate handles configuration loading and management for streamdown, supporting TOML configuration files.
§Overview
Configuration is loaded from platform-specific locations:
- Linux:
~/.config/streamdown/config.toml - macOS:
~/Library/Application Support/streamdown/config.toml - Windows:
%APPDATA%\streamdown\config.toml
§Example
use streamdown_config::Config;
// Load config with defaults
let config = Config::load().unwrap();
// Or load with an override file
let config = Config::load_with_override(Some("./custom.toml".as_ref())).unwrap();Structs§
- Computed
Style - Pre-computed ANSI color strings.
- Config
- Main configuration structure.
- Features
Config - Feature flags configuration.
- HsvMultiplier
- HSV multiplier for color transformations.
- Style
Config - Style configuration.