From 70f6380b48e45892bbf8bc638a7478b7c7b82d18 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 13 Feb 2026 10:24:17 -0500 Subject: [PATCH] chore(deps): update rand requirement from 0.9 to 0.10 (#650) * 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] * 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. --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Alex Hancock --- crates/rmcp/Cargo.toml | 2 +- examples/clients/Cargo.toml | 2 +- examples/servers/Cargo.toml | 2 +- examples/servers/src/cimd_auth_streamhttp.rs | 2 +- examples/servers/src/complex_auth_streamhttp.rs | 2 +- examples/transport/Cargo.toml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/rmcp/Cargo.toml b/crates/rmcp/Cargo.toml index 2b08f29..f109a9f 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 e086e81..078a9d5 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 4a4b065..1db8cee 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/servers/src/cimd_auth_streamhttp.rs b/examples/servers/src/cimd_auth_streamhttp.rs index 73eab5e..7b402c9 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 84b68d9..4afacf8 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}, diff --git a/examples/transport/Cargo.toml b/examples/transport/Cargo.toml index 7017bdc..9396b4d 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"] }