Skip to main content

Module config

Module config 

Source
Expand description

User config, loaded from a TOML file.

Location: $RGX_CONFIG (verbatim), else $XDG_CONFIG_HOME/rgx/config.toml (%APPDATA% on Windows), else ~/.config/rgx/config.toml. A missing or unreadable file yields the default config; a present but malformed (or invalid) file is a hard error so typos don’t silently fall back to defaults.

Structs§

Config

Constants§

DEFAULT_IDLE_TIMEOUT_SECS
The daemon exits after this long with no client request, freeing its RAM; the next search respawns it. Zero or negative disables the timeout (stay resident forever).
DEFAULT_PERSIST_THRESHOLD_MS
A cold build faster than this is cheap to redo, so the index is kept RAM-only (no snapshot).

Functions§

config_path
Where the config file lives, given the relevant environment.
parse
Parse config text, rejecting unknown keys.