Skip to content

Commit 70f6380

Browse files
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](rust-random/rand@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>
1 parent d9a5560 commit 70f6380

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

crates/rmcp/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ process-wrap = { version = "9.0", features = ["tokio1"], optional = true }
5454
# tokio-tungstenite ={ version = "0.26", optional = true }
5555

5656
# for http-server transport
57-
rand = { version = "0.9", optional = true }
57+
rand = { version = "0.10", optional = true }
5858
tokio-stream = { version = "0.1", optional = true }
5959
uuid = { version = "1", features = ["v4"], optional = true }
6060
http-body = { version = "1", optional = true }

examples/clients/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ serde = { version = "1.0", features = ["derive"] }
2020
serde_json = "1.0"
2121
tracing = "0.1"
2222
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
23-
rand = "0.9"
23+
rand = "0.10"
2424
futures = "0.3"
2525
anyhow = "1.0"
2626
url = "2.4"

examples/servers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ tracing-subscriber = { version = "0.3", features = [
3232
"fmt",
3333
] }
3434
futures = "0.3"
35-
rand = { version = "0.9", features = ["std"] }
35+
rand = { version = "0.10", features = ["std"] }
3636
axum = { version = "0.8", features = ["macros"] }
3737
schemars = "1.0"
3838
reqwest = { version = "0.12", features = ["json"] }

examples/servers/src/cimd_auth_streamhttp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use axum::{
1313
response::{Html, IntoResponse, Redirect, Response},
1414
routing::{get, post},
1515
};
16-
use rand::{Rng, distr::Alphanumeric};
16+
use rand::{RngExt, distr::Alphanumeric};
1717
use rmcp::transport::{
1818
StreamableHttpServerConfig,
1919
streamable_http_server::{session::local::LocalSessionManager, tower::StreamableHttpService},

examples/servers/src/complex_auth_streamhttp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use axum::{
1111
response::{Html, IntoResponse, Redirect, Response},
1212
routing::{get, post},
1313
};
14-
use rand::{Rng, distr::Alphanumeric};
14+
use rand::{RngExt, distr::Alphanumeric};
1515
use rmcp::transport::{
1616
StreamableHttpServerConfig,
1717
auth::{AuthorizationMetadata, ClientRegistrationResponse, OAuthClientConfig},

examples/transport/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ tracing-subscriber = { version = "0.3", features = [
3636
"fmt",
3737
] }
3838
futures = "0.3"
39-
rand = { version = "0.9" }
39+
rand = { version = "0.10" }
4040
schemars = { version = "1.0", optional = true }
4141
hyper = { version = "1", features = ["client", "server", "http1"] }
4242
hyper-util = { version = "0.1", features = ["tokio"] }

0 commit comments

Comments
 (0)