Skip to main content

load

Function load 

Source
pub fn load(path: Option<&Path>) -> HashSet<String>
Expand description

Load the set of disabled plugin names from path (or default path if None). Returns an empty set if the file does not exist.

On TOML parse failure (user hand-edited and produced invalid syntax) this degrades silently to an empty set after writing a warning to stderr — the gate must continue running. To loudly reject malformed input, use the stricter add() path which refuses to overwrite a malformed file.