mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Introduce cargo-deny
Add `deny.toml` with a few exceptions, and update certain dependencies to get rid of duplicates. Running `cargo deny check` will yield some warnings still, but no errors.
This commit is contained in:
@@ -18,13 +18,13 @@ logfmt = [
|
||||
anyhow = { version = "1" }
|
||||
axum = { version = "0.6.7", default-features = false, features = ["headers", "json", "query", "tokio"] }
|
||||
axum-auth = { version= "0.4.0", default-features = false, features = ["auth-bearer"] }
|
||||
axum-server = { version = "0.4.4", default-features = false }
|
||||
chrono = { version = "0.4.22" }
|
||||
fastrand = { version = "1.9.0" }
|
||||
axum-server = { version = "0.5.1", default-features = false }
|
||||
chrono = { version = "0.4.22", default-features = false }
|
||||
fastrand = { version = "2.0.0" }
|
||||
flate2 = { version = "1" }
|
||||
hyper = { version = "0.14.17", default-features = false }
|
||||
lexopt = { version = "0.2.1" }
|
||||
lru = { version = "0.10.0" }
|
||||
lru = { version = "0.11.0" }
|
||||
nonempty = { version = "0.8.1", features = ["serialize"] }
|
||||
radicle-surf = { version = "0.14.0", default-features = false, features = ["serde"] }
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
|
||||
@@ -37,7 +37,7 @@ struct AuthChallenge {
|
||||
/// Create session.
|
||||
/// `POST /sessions`
|
||||
async fn session_create_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
||||
let rng = fastrand::Rng::new();
|
||||
let mut rng = fastrand::Rng::new();
|
||||
let session_id = repeat_with(|| rng.alphanumeric())
|
||||
.take(32)
|
||||
.collect::<String>();
|
||||
|
||||
Reference in New Issue
Block a user