Skip to main content

parse_catalog

Function parse_catalog 

Source
pub fn parse_catalog(input: &str) -> Result<Vec<DcsTemplate>, TemplateError>
Expand description

Parses a TOML catalog (the [[template]] array-of-tables format used by templates/builtin.toml and the user catalog file bhtune-cli auto-loads) and validates every template it contains. Pure – takes an in-memory string and does no I/O itself; all file reading is the caller’s job (bhtune-cli’s template-user-catalog/ template-cli), keeping this crate’s “no I/O” rule intact.