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§
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.