Expand description
Native yaml module for YAML parsing and serialization.
Exports: yaml.parse(text), yaml.parse_all(text), yaml.stringify(value), yaml.is_valid(text)
Phase 1.B (ADR-006 §2.7.4) status: yaml.parse / yaml.parse_all /
yaml.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.
yaml.parse(text) -> Result<any>andyaml.parse_all(text) -> Result<Array<any>>return polymorphic recursiveserde_yaml::Value-equivalent trees. Mapping to N6.yaml.stringify(value: any)takes a polymorphicvalue: anyinput parameter that maps to N4.
yaml.is_valid(text) is migratable standalone.
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_
yaml_ module - Create the
yamlmodule with YAML parsing and serialization functions.