chore: add sha2 and hex dependencies for session token hashing

This commit is contained in:
xfy 2026-06-11 09:42:08 +08:00
parent 9cf6a7e4e6
commit 1fa379fe4a
2 changed files with 10 additions and 0 deletions

8
Cargo.lock generated
View File

@ -2039,6 +2039,12 @@ version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fc0fef456e4baa96da950455cd02c081ca953b141298e41db3fc7e36b1da849c"
[[package]]
name = "hex"
version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
[[package]]
name = "hmac"
version = "0.13.0"
@ -5348,6 +5354,7 @@ dependencies = [
"dotenvy",
"getrandom 0.2.17",
"governor",
"hex",
"http",
"image",
"js-sys",
@ -5357,6 +5364,7 @@ dependencies = [
"regex",
"serde",
"serde_json",
"sha2 0.10.9",
"syntect",
"tokio",
"tokio-postgres",

View File

@ -23,6 +23,8 @@ getrandom = { version = "0.2", features = ["js"] }
http = "1"
axum = { version = "0.8", optional = true, features = ["multipart"] }
serde_json = "1.0"
sha2 = "0.10"
hex = "0.4"
ammonia = { version = "4", optional = true }
syntect = { version = "5", default-features = false, features = ["default-syntaxes", "default-themes", "default-fancy", "html", "parsing", "dump-load", "yaml-load"], optional = true }
# NOTE: WebP decoder is intentionally excluded from the image crate.