4fe1917aa6
- .NET: add explicit <Version>0.1.2</Version> to client csproj (CLI-18) - Go: ClientVersion 0.1.0-dev -> 0.1.2 (CLI-21) - Python: __version__ 0.1.0 -> 0.1.2 to match pyproject.toml (CLI-26) - Rust: CLIENT_VERSION now sourced from env!(CARGO_PKG_VERSION) so it cannot drift from Cargo.toml (CLI-29) Verified: dotnet build clean; go build/test ok; cargo check/test/clippy clean; pytest 127 passed. P2 client version-drift cluster. Claude-Session: https://claude.ai/code/session_01DMXXvNuPekkkrTEyPNxEkW
15 lines
630 B
Rust
15 lines
630 B
Rust
//! Build-time version constants advertised by the Rust client.
|
|
//!
|
|
//! The protocol versions track the values the gateway and worker negotiate on
|
|
//! `OpenSession` and let test harnesses cross-check the wire contract.
|
|
|
|
/// Semantic version of this Rust client crate. Sourced from `Cargo.toml` at
|
|
/// compile time so the two cannot drift.
|
|
pub const CLIENT_VERSION: &str = env!("CARGO_PKG_VERSION");
|
|
|
|
/// Public gateway gRPC protocol version this client targets.
|
|
pub const GATEWAY_PROTOCOL_VERSION: u32 = 3;
|
|
|
|
/// Internal worker IPC protocol version this client expects sessions to use.
|
|
pub const WORKER_PROTOCOL_VERSION: u32 = 1;
|