Skip to main content

Crate zccache_protocol

Crate zccache_protocol 

Source
Expand description

IPC protocol types and serialization for zccache.

Defines the message types exchanged between CLI/wrapper and daemon, and provides serialization/deserialization using bincode.

Re-exports§

pub use messages::*;

Modules§

messages
Protocol message definitions.

Enums§

ProtocolError
Protocol-level errors.

Constants§

PROTOCOL_VERSION
Protocol version number. Bump this when the wire format changes: new/removed/reordered enum variants or struct field changes. Patch releases that don’t change the protocol keep the same version.

Functions§

decode_message
Try to decode a message from a byte buffer.
encode_message
Serialize a message to a length-prefixed byte buffer with protocol version.