Skip to main content

load_rules

Function load_rules 

Source
pub fn load_rules(toml_str: &str) -> Result<CustomRulesFile, String>
Expand description

Load custom rules from a TOML string. Inputs larger than 1 MiB are rejected before parsing to bound memory + parse time.