pub const API_VERSION: &str = "1.1";Expand description
The protocol-compatibility version as "MAJOR.MINOR", distinct from the crate/stack version.
- MAJOR matches the
/NinAPI_NAMEand changes only on a breaking wire change (the transport already rejects a mismatchedapi, so an equality check on that is redundant). - MINOR (
API_MINOR) increments on EVERY surface change within a major — additive fields, new methods, or a strictness change like params validation — bumped in the same change that makes it. A client can guard withapi_minor >= Nfor a feature it needs, or refuse a daemon older than a minor it requires. It never resets except on a MAJOR bump.