Skip to main content

Crate wasmsh_vm

Crate wasmsh_vm 

Source
Expand description

Cooperative virtual machine for the wasmsh executor subset.

The full shell still runs primarily in wasmsh-runtime. This VM is used for the lowered IR subset and provides the shared budgeting, cancellation, diagnostics, and output accounting primitives that the runtime also relies on for resumable execution.

Modules§

pipe
Pipe buffer for connecting pipeline stages.

Structs§

BudgetTracker
Shared budget accounting across the VM and runtime layers.
CancellationToken
A cancellation token that can be shared across threads.
DiagnosticEvent
A structured diagnostic event emitted during execution.
ExecutionLimits
Configurable execution limits.
ExhaustionReason
Stable exhaustion reason for a specific tracked budget.
Vm
The shell virtual machine.

Enums§

BudgetCategory
Structured budget category tracked during execution.
DiagCategory
Category of diagnostic event.
DiagLevel
Diagnostic severity.
StepResult
Outcome of VM execution.
StopReason
Structured stop reason for the current execution.

Traits§

VmExecutor