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] <support@github.com>

* 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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Hancock <alexhancock@block.xyz>
This commit is contained in:
dependabot[bot] 2026-02-13 10:24:17 -05:00 committed by GitHub
parent d9a5560953
commit 70f6380b48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 6 deletions

View file

@ -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 }

View file

@ -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"

View file

@ -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"] }

View file

@ -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},

View file

@ -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},

View file

@ -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"] }