Skip to main content

Crate vs_protocol

Crate vs_protocol 

Source
Expand description

Wire-protocol encoder/decoder for vibesurfer.

vs-protocol is the shared specification of the line-oriented wire format documented in docs/PROTOCOL.md at the workspace root. The daemon and the CLI both link this crate; the daemon emits, the CLI parses (and vice-versa for requests).

§Layout

Re-exports§

pub use codes::ErrorCode;
pub use codes::Op;
pub use codes::Role;
pub use codes::UnknownCode;
pub use codes::WarningCode;
pub use delta::apply;
pub use delta::diff;
pub use delta::DeltaOp;
pub use envelope::Envelope;
pub use envelope::ResponseHead;
pub use envelope::StateToken;
pub use envelope::Warning;
pub use error::ParseError;
pub use error::Result;
pub use request::Request;
pub use tree::Node;
pub use tree::Ref;
pub use tree::Tree;

Modules§

codes
Short codes used on the wire.
delta
Delta operations: encoding, parsing, application, and diffing.
envelope
Response envelope, warnings, and the state token.
error
Crate-wide parse errors.
request
Request line: <primitive> [arg]... [--flag[=val]]...
tree
In-memory tree representation and full-tree wire format.

Functions§

version
Returns the crate version (matches the workspace version).