From 472fcede09faba038023f79a3959246ad63460c7 Mon Sep 17 00:00:00 2001 From: Ethan Pailes Date: Wed, 2 Sep 2026 20:13:35 +0000 Subject: [PATCH] chore: decouple protocol wire version from source This patch decouples the shpool-protocol wire format version number from the source code version number. Some updates are backwards compatible at the wire level but not at the source level, and a breaking update at the wire level is very disruptive so we want to avoid it as much as we can. --- shpool-protocol/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shpool-protocol/src/lib.rs b/shpool-protocol/src/lib.rs index 2d7e52fc..0da25fc3 100644 --- a/shpool-protocol/src/lib.rs +++ b/shpool-protocol/src/lib.rs @@ -18,7 +18,10 @@ use anyhow::anyhow; use clap::ValueEnum; use serde_derive::{Deserialize, Serialize}; -pub const VERSION: &str = env!("CARGO_PKG_VERSION"); +// We hardcode the version string to be able to track wire protocol +// compatibility seperately from rust API compat. For example, adding +// a new field is wire compatible, but not rust compatible. +pub const VERSION: &str = "0.4.3"; /// The header used to advertize daemon version. ///