Skip to content

Commit 0ce1418

Browse files
authored
chore(deps): update rand requirement from 0.8 to 0.9 (#226)
Signed-off-by: jokemanfire <[email protected]>
1 parent 633d424 commit 0ce1418

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/clients/Cargo.toml

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

examples/servers/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ tracing-subscriber = { version = "0.3", features = [
1919
"fmt",
2020
] }
2121
futures = "0.3"
22-
rand = { version = "0.8", features = ["std"] }
22+
rand = { version = "0.9", features = ["std"] }
2323
axum = { version = "0.8", features = ["macros"] }
2424
schemars = { version = "0.8", optional = true }
2525
reqwest = { version = "0.12", features = ["json"] }

examples/servers/src/mcp_oauth_server.rs

Lines changed: 2 additions & 2 deletions
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, distributions::Alphanumeric};
14+
use rand::{Rng, distr::Alphanumeric};
1515
use rmcp::transport::{
1616
SseServer,
1717
auth::{
@@ -216,7 +216,7 @@ struct UserInfo {
216216
}
217217

218218
fn generate_random_string(length: usize) -> String {
219-
rand::thread_rng()
219+
rand::rng()
220220
.sample_iter(&Alphanumeric)
221221
.take(length)
222222
.map(char::from)

examples/transport/Cargo.toml

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

0 commit comments

Comments
 (0)