Skip to main content

PROTOCOL_VERSION

Constant PROTOCOL_VERSION 

Source
pub const PROTOCOL_VERSION: u32 = 3;
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 2 — gate subhandler verbs by wire origin (from_wire request field) 3 — added per-request identity context to the request frame (actor_id, visible_namespaces); the daemon now serves a request under the frame’s identity instead of rejecting on namespace_mismatch (the config_id equality reject stays hard)