The local version range derived from the compile-time constants in `rpc_codec::header`. Single source of truth for both sides.
()
| 34 | /// The local version range derived from the compile-time constants in |
| 35 | /// `rpc_codec::header`. Single source of truth for both sides. |
| 36 | pub fn local_version_range() -> VersionRange { |
| 37 | // Supported range: [1, WIRE_VERSION]. Min is 1 (oldest supported); |
| 38 | // max is the current build's wire version. |
| 39 | VersionRange::new(WireVersion(1), WireVersion(WIRE_VERSION)) |
| 40 | } |
| 41 | |
| 42 | /// Write a length-prefixed zerompk message to `send`. |
| 43 | async fn write_framed<T: serde::Serialize + zerompk::ToMessagePack>( |