Expand description
Versioned AST loader with automatic migration support.
This module provides:
- Version detection from raw JSON
- Deserialization routing to the correct version
- Automatic migration to the latest AST format
§Usage
ⓘ
use hyperstack_interpreter::versioned::{load_stack_spec, load_stream_spec};
let stack = load_stack_spec(&json_string)?;
let stream = load_stream_spec(&json_string)?;Enums§
- Versioned
Load Error - Error type for versioned AST loading failures.
- Versioned
Stack Spec - Versioned wrapper for SerializableStackSpec.
- Versioned
Stream Spec - Versioned wrapper for SerializableStreamSpec.
Functions§
- detect_
ast_ version - Detect the AST version from a JSON string without full deserialization.
- load_
stack_ spec - Load a stack spec from JSON with automatic version detection and migration.
- load_
stream_ spec - Load a stream spec from JSON with automatic version detection and migration.