Skip to main content

Module version

Module version 

Source
Expand description

Version compatibility and rolling upgrade support.

This module provides version constants, compatibility checks, and a handshake protocol for multi-node clusters to detect incompatible version combinations before establishing connections.

Structs§

VersionHandshake
Version handshake exchanged between nodes on initial connection.

Constants§

CURRENT_VERSION
Current version of this build, taken from Cargo.toml at compile time.
MIN_COMPATIBLE_VERSION
Minimum compatible version: nodes running this version or newer (with the same major) are accepted into the cluster.

Functions§

is_compatible
Returns true when peer_version is considered compatible with this node.