Skip to main content

Module toml_module

Module toml_module 

Source
Expand description

Native toml module for TOML parsing and serialization.

Exports: toml.parse(text), toml.stringify(value), toml.is_valid(text)

Phase 1.B (ADR-006 §2.7.4) status: toml.parse / toml.stringify REMAIN DEFERRED pending the N4 (any-input typed marshal) and N6 (any-output typed marshal) architectural decisions per docs/defections.md HashMap-marshal cluster’s sub-decision queue.

  • toml.parse(text) -> Result<any> returns a polymorphic recursive toml::Value-equivalent tree. Mapping to the N6 architectural surface.
  • toml.stringify(value: any) takes a polymorphic value: any input. Mapping to the N4 architectural surface.

toml.is_valid(text) is migratable standalone — it only needs the incoming string slot.

Until N4 + N6 land, the bodies use the variadic register_typed_function shape (per ADR-006 §2.7.4 ruling) and return Err(...) for the deferred halves; is_valid is fully functional.

Functions§

create_toml_module
Create the toml module with TOML parsing and serialization functions.