From c3722b867263d2b266b4f12f713ef714cf0455c7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 17:02:34 +0000 Subject: [PATCH 1/2] chore(deps): update rand requirement from 0.9 to 0.10 Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-random/rand/compare/rand_core-0.9.1...0.10.0) --- updated-dependencies: - dependency-name: rand dependency-version: 0.10.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- crates/rmcp/Cargo.toml | 2 +- examples/clients/Cargo.toml | 2 +- examples/servers/Cargo.toml | 2 +- examples/transport/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/rmcp/Cargo.toml b/crates/rmcp/Cargo.toml index 2b08f292..f109a9f0 100644 --- a/crates/rmcp/Cargo.toml +++ b/crates/rmcp/Cargo.toml @@ -54,7 +54,7 @@ process-wrap = { version = "9.0", features = ["tokio1"], optional = true } # tokio-tungstenite ={ version = "0.26", optional = true } # for http-server transport -rand = { version = "0.9", optional = true } +rand = { version = "0.10", optional = true } tokio-stream = { version = "0.1", optional = true } uuid = { version = "1", features = ["v4"], optional = true } http-body = { version = "1", optional = true } diff --git a/examples/clients/Cargo.toml b/examples/clients/Cargo.toml index e086e811..078a9d58 100644 --- a/examples/clients/Cargo.toml +++ b/examples/clients/Cargo.toml @@ -20,7 +20,7 @@ serde = { version = "1.0", features = ["derive"] } serde_json = "1.0" tracing = "0.1" tracing-subscriber = { version = "0.3", features = ["env-filter"] } -rand = "0.9" +rand = "0.10" futures = "0.3" anyhow = "1.0" url = "2.4" diff --git a/examples/servers/Cargo.toml b/examples/servers/Cargo.toml index 4a4b0655..1db8ceee 100644 --- a/examples/servers/Cargo.toml +++ b/examples/servers/Cargo.toml @@ -32,7 +32,7 @@ tracing-subscriber = { version = "0.3", features = [ "fmt", ] } futures = "0.3" -rand = { version = "0.9", features = ["std"] } +rand = { version = "0.10", features = ["std"] } axum = { version = "0.8", features = ["macros"] } schemars = "1.0" reqwest = { version = "0.12", features = ["json"] } diff --git a/examples/transport/Cargo.toml b/examples/transport/Cargo.toml index 7017bdca..9396b4d3 100644 --- a/examples/transport/Cargo.toml +++ b/examples/transport/Cargo.toml @@ -36,7 +36,7 @@ tracing-subscriber = { version = "0.3", features = [ "fmt", ] } futures = "0.3" -rand = { version = "0.9" } +rand = { version = "0.10" } schemars = { version = "1.0", optional = true } hyper = { version = "1", features = ["client", "server", "http1"] } hyper-util = { version = "0.1", features = ["tokio"] } From cbb9657e2dcd2805ca40b9b5c1fbaad4abecde74 Mon Sep 17 00:00:00 2001 From: Alex Hancock Date: Fri, 13 Feb 2026 10:02:52 -0500 Subject: [PATCH 2/2] fix: update rand import from Rng to RngExt for rand 0.10 compatibility In rand 0.10, the Rng trait was renamed to RngExt. This updates the imports in the example servers to use the new trait name. --- examples/servers/src/cimd_auth_streamhttp.rs | 2 +- examples/servers/src/complex_auth_streamhttp.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/servers/src/cimd_auth_streamhttp.rs b/examples/servers/src/cimd_auth_streamhttp.rs index 73eab5e6..7b402c9f 100644 --- a/examples/servers/src/cimd_auth_streamhttp.rs +++ b/examples/servers/src/cimd_auth_streamhttp.rs @@ -13,7 +13,7 @@ use axum::{ response::{Html, IntoResponse, Redirect, Response}, routing::{get, post}, }; -use rand::{Rng, distr::Alphanumeric}; +use rand::{RngExt, distr::Alphanumeric}; use rmcp::transport::{ StreamableHttpServerConfig, streamable_http_server::{session::local::LocalSessionManager, tower::StreamableHttpService}, diff --git a/examples/servers/src/complex_auth_streamhttp.rs b/examples/servers/src/complex_auth_streamhttp.rs index 84b68d9c..4afacf8d 100644 --- a/examples/servers/src/complex_auth_streamhttp.rs +++ b/examples/servers/src/complex_auth_streamhttp.rs @@ -11,7 +11,7 @@ use axum::{ response::{Html, IntoResponse, Redirect, Response}, routing::{get, post}, }; -use rand::{Rng, distr::Alphanumeric}; +use rand::{RngExt, distr::Alphanumeric}; use rmcp::transport::{ StreamableHttpServerConfig, auth::{AuthorizationMetadata, ClientRegistrationResponse, OAuthClientConfig},