chore(deps): update rand requirement from 0.8 to 0.9 (#226)
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
This commit is contained in:
parent
633d42425a
commit
0ce14186ba
4 changed files with 5 additions and 5 deletions
|
|
@ -21,7 +21,7 @@ serde = { version = "1.0", features = ["derive"] }
|
||||||
serde_json = "1.0"
|
serde_json = "1.0"
|
||||||
tracing = "0.1"
|
tracing = "0.1"
|
||||||
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
||||||
rand = "0.8"
|
rand = "0.9"
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
url = "2.4"
|
url = "2.4"
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ tracing-subscriber = { version = "0.3", features = [
|
||||||
"fmt",
|
"fmt",
|
||||||
] }
|
] }
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
rand = { version = "0.8", features = ["std"] }
|
rand = { version = "0.9", features = ["std"] }
|
||||||
axum = { version = "0.8", features = ["macros"] }
|
axum = { version = "0.8", features = ["macros"] }
|
||||||
schemars = { version = "0.8", optional = true }
|
schemars = { version = "0.8", optional = true }
|
||||||
reqwest = { version = "0.12", features = ["json"] }
|
reqwest = { version = "0.12", features = ["json"] }
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ use axum::{
|
||||||
response::{Html, IntoResponse, Redirect, Response},
|
response::{Html, IntoResponse, Redirect, Response},
|
||||||
routing::{get, post},
|
routing::{get, post},
|
||||||
};
|
};
|
||||||
use rand::{Rng, distributions::Alphanumeric};
|
use rand::{Rng, distr::Alphanumeric};
|
||||||
use rmcp::transport::{
|
use rmcp::transport::{
|
||||||
SseServer,
|
SseServer,
|
||||||
auth::{
|
auth::{
|
||||||
|
|
@ -216,7 +216,7 @@ struct UserInfo {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn generate_random_string(length: usize) -> String {
|
fn generate_random_string(length: usize) -> String {
|
||||||
rand::thread_rng()
|
rand::rng()
|
||||||
.sample_iter(&Alphanumeric)
|
.sample_iter(&Alphanumeric)
|
||||||
.take(length)
|
.take(length)
|
||||||
.map(char::from)
|
.map(char::from)
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,7 @@ tracing-subscriber = { version = "0.3", features = [
|
||||||
"fmt",
|
"fmt",
|
||||||
] }
|
] }
|
||||||
futures = "0.3"
|
futures = "0.3"
|
||||||
rand = { version = "0.8" }
|
rand = { version = "0.9" }
|
||||||
schemars = { version = "0.8", optional = true }
|
schemars = { version = "0.8", optional = true }
|
||||||
hyper = { version = "1", features = ["client", "server", "http1"] }
|
hyper = { version = "1", features = ["client", "server", "http1"] }
|
||||||
hyper-util = { version = "0.1", features = ["tokio"] }
|
hyper-util = { version = "0.1", features = ["tokio"] }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue