VulnCheck.Workspace.Toml (VulnCheck v1.0.1)

Copy Markdown View Source

A small TOML reader covering the subset used by gleam.toml and Gleam's manifest.toml: tables, arrays of tables, inline tables, arrays (possibly spanning several lines), basic/literal strings, integers, floats and booleans. Keys are kept as strings.

Summary

Functions

Parses TOML source into a map with string keys.

Reads and parses a TOML file.

Functions

parse(source)

@spec parse(String.t()) :: {:ok, map()} | {:error, String.t()}

Parses TOML source into a map with string keys.

parse_file(path)

@spec parse_file(Path.t()) :: {:ok, map()} | {:error, String.t()}

Reads and parses a TOML file.