pub fn add_parse_util(lua: &Lua) -> Result<(), Error>Expand description
Exposes data parsing utilities to the Lua environment.
These helpers allow package scripts to easily consume structured data commonly found in upstream projects:
json/yaml/toml: Parsers for structured configuration files.checksumFile: A specialized parser for standard checksum files (e.g.sha256sums).
These utilities return native Lua tables, allowing for idiomatic
manipulation of complex data within the package script.
Adds data parsing utilities (JSON, YAML, TOML, checksum files) to the
UTILS.PARSE table.
ยงErrors
Returns an error if the UTILS table cannot be found or if setting the
PARSE table fails.