Skip to main content

Module versioned

Module versioned 

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

VersionedLoadError
Error type for versioned AST loading failures.
VersionedStackSpec
Versioned wrapper for SerializableStackSpec.
VersionedStreamSpec
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.