Skip to main content

Module wconfig

Module wconfig 

Source
Expand description

Configuration system: settings, themes, widgets, bookmarks, connections. Port of Go’s pkg/wconfig/.

Provides the full configuration type hierarchy and a thread-safe in-memory config holder (ConfigState).

Note ConfigState does NOT watch the filesystem, despite the name this module’s type carried until 2026-09-06. Filesystem watching lives in backend::config_watcher_fs, on top of the shared fs_watch::pool. Two similarly-named modules where only one watched cost real debugging time; see REPORT_NETWORK_ARCHITECTURE_DRYNESS_AND_ROBUST_LAN_2026_09_06.md §7.

Re-exports§

pub use redact::redact_full_config_for_renderer;
pub use loader::*;
pub use types::*;
pub use state::*;

Modules§

loader 🔒
Config file loading, parsing, template merging, and environment expansion.
redact
Redact secret settings keys from the full-config JSON before it is sent to any renderer/frontend connection.
state 🔒
Thread-safe in-memory configuration holder.
types
Configuration type definitions: settings, themes, widgets, connections, bookmarks.

Constants§

CONNECTIONS_FILE
PROFILES_FILE
SETTINGS_FILE
SETTINGS_TEMPLATE