Skip to content

Commit d448e63

Browse files
author
Dionisio
committed
fix: downgrade rand_core to 0.6 for argon2 compatibility
rand_core 0.9.x changed OsRng API (no longer implements RngCore directly) and is incompatible with argon2 0.5.x which depends on rand_core 0.6.x. This caused compilation failures in CI.
1 parent 0f1dc00 commit d448e63

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ sqlx = { version = "0.8.6", features = ["postgres", "runtime-tokio", "tls-rustls
3232
anyhow = "1.0.101"
3333
jsonwebtoken = { version = "10.1.0", features = ["rust_crypto"] }
3434
argon2 = "0.5.3"
35-
rand_core = { version = "0.9.5", features = ["std"] }
35+
rand_core = { version = "0.6", features = ["std", "getrandom"] }
3636
hyper = { version = "1.8.1", features = ["full"] }
3737
quick-xml = "0.39.0"
3838
dotenv = "0.15.0"

0 commit comments

Comments
 (0)