Skip to main content

Crate wasmsh_protocol

Crate wasmsh_protocol 

Source
Expand description

Message protocol for wasmsh host adapters.

Defines versioned, serializable messages exchanged between a host and wasmsh-runtime, including the progressive StartRun / PollRun execution flow in addition to one-shot Run.

An experimental typed WIT projection of the same surface lives in crates/wasmsh-protocol/wit/worker-protocol.wit. The serde enums remain the canonical contract today; the WIT world is additive and intended for future component-model embedders.

§Protocol version

Current version: 0.1.0

Enums§

DiagnosticLevel
Diagnostic severity level.
HostCommand
A command sent from the host to the worker.
WorkerEvent
An event sent from the worker to the host.

Constants§

PROTOCOL_VERSION
Protocol version string.