Skip to main content

add_parse_util

Function add_parse_util 

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