Skip to main content

Crate lean_rs_worker_protocol

Crate lean_rs_worker_protocol 

Source
Expand description

Wire protocol and shared value types for the lean-rs worker process boundary.

This crate is the single definition of every shape that flows between a parent supervisor and a worker child process. It does not link libleanshared, so it can be consumed by alternative transports, fuzz harnesses, or recorders without pulling the Lean runtime. The parent supervisor (lean-rs-worker-parent) and the child runtime (lean-rs-worker-child) both depend on this crate and exchange framed messages defined here.

§Module map

§Stability

Every public enum, and every public struct that is not externally constructed, is #[non_exhaustive] so additive evolution of the wire format does not require a semver-major bump. Struct shapes with public fields that downstream code legitimately constructs (currently protocol::DataRow) remain exhaustive; adding a field there is a breaking change.

Modules§

protocol
Length-delimited frame codec and message payload types for the parent ↔ child worker process boundary.
types
Wire-stable, serde-derived value types crossing the worker process boundary.

Constants§

VERSION
Version of the lean-rs-worker-protocol crate, matching Cargo.toml.