From 7eaad3d99f44061a7fecdf51c19d1c58e6b366db Mon Sep 17 00:00:00 2001 From: mfahampshire Date: Fri, 24 Apr 2026 17:16:59 +0100 Subject: [PATCH] Add versions file for doc-wide versioning --- documentation/docs/components/versions.ts | 24 ++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/documentation/docs/components/versions.ts b/documentation/docs/components/versions.ts index c9d7bcc247..b72f3c9587 100644 --- a/documentation/docs/components/versions.ts +++ b/documentation/docs/components/versions.ts @@ -4,26 +4,28 @@ * Components (CratesPaused, CodeVerified, etc.) import from here so there is a * single place to update on each release. * - * Fenced code blocks in tutorials still hardcode versions for copy-paste - * friendliness. When bumping versions here, also update the Cargo.toml - * snippets in the files listed below: + * Fenced code blocks still hardcode versions for copy-paste friendliness. + * When bumping versions here, also update the Cargo.toml snippets in: * - * pages/developers/smolmix/tutorial.mdx - * pages/developers/smolmix/tutorial-udp.mdx - * pages/developers/smolmix/tutorial-websocket.mdx * pages/developers/rust/importing.mdx - * pages/developers/rust/mixnet/tutorial.mdx - * pages/developers/rust/stream/tutorial.mdx * pages/developers/rust/tcpproxy.mdx - * pages/developers/rust/client-pool/tutorial.mdx * public/llms.txt + * + * RUST_MSRV is imported directly by all pages that display the Rust version — + * no manual file edits needed for MSRV bumps: + * + * pages/developers/smolmix.mdx + * pages/developers/rust/importing.mdx */ // nym-sdk / nym-bin-common / nym-network-defaults — Rust SDK crates -export const NYM_SDK_VERSION = "X.Y.Z"; +export const NYM_SDK_VERSION = "1.20.4"; // smolmix standalone crate -export const SMOLMIX_VERSION = "X.Y.Z"; +export const SMOLMIX_VERSION = "0.0.1"; // blake3 exact pin (workaround for transitive digest conflict) export const BLAKE3_PIN = "=1.7.0"; + +// Minimum supported Rust version (matches workspace rust-version in root Cargo.toml) +export const RUST_MSRV = "1.87";