chore(api): update Cargo dependency and build script
This commit is contained in:
parent
ec29673d14
commit
0f800da74d
@ -57,7 +57,7 @@ reqwest = { workspace = true, features = ["json", "native-tls", "stream"] }
|
||||
[build-dependencies]
|
||||
brotli = "7"
|
||||
flate2 = "1"
|
||||
sha2 = "0.10"
|
||||
sha2 = "0.11"
|
||||
|
||||
[lints]
|
||||
workspace = true
|
||||
|
||||
@ -37,7 +37,7 @@ fn compute_etag(data: &[u8]) -> String {
|
||||
hasher.update(data);
|
||||
let hash = hasher.finalize();
|
||||
// First 32 hex chars for a compact etag
|
||||
format!("{:x}", hash)[..32].to_string()
|
||||
hash.iter().map(|b| format!("{:02x}", b)).take(16).collect::<String>()
|
||||
}
|
||||
|
||||
// ── Asset collection ─────────────────────────────────────────────────────
|
||||
|
||||
Loading…
Reference in New Issue
Block a user