Skip to main content

ahp_types/
version.rs

1// Generated from types/*.ts — do not edit.
2//
3// Regenerate with: npm run generate:rust
4
5#![allow(missing_docs)]
6
7/// Current protocol version (SemVer `MAJOR.MINOR.PATCH`).
8pub const PROTOCOL_VERSION: &str = "0.5.2";
9
10/// Every protocol version this crate is willing to negotiate, ordered
11/// most-preferred-first. The first entry equals [`PROTOCOL_VERSION`].
12///
13/// Consumers building `InitializeParams` should pass this slice (or a
14/// derived `Vec<String>`) so the same client binary can fall back to
15/// older protocol versions if the host doesn't accept the newest one.
16pub const SUPPORTED_PROTOCOL_VERSIONS: &[&str] = &["0.5.2", "0.5.1"];