Skip to main content

PROTOCOL_VERSION

Constant PROTOCOL_VERSION 

Source
pub const PROTOCOL_VERSION: u32 = 2;
Expand description

Wire protocol version for the daemon IPC framing.

Increment this constant whenever the request or response frame shape changes in a backward-incompatible way. The client sends its version in every request; the daemon rejects mismatches with an explicit error that names both sides so the operator knows exactly what to do (make local rebuilds the client binary).

Version history: 1 — initial versioned framing (added protocol_version + version_mismatch); added probe_only request field + probe-ack sentinel shape in response