//! 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, taken 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;