chore(#2510): bump indicatif/tower-http/hmac/sha2 to latest majors
Bumps the feature (major) versions that update cleanly without breaking the build: indicatif 0.17->0.18, tower-http 0.6->0.7, hmac 0.12->0.13, sha2 0.10->0.11. Only adaptation needed: import hmac's KeyInit trait in webhook_secret (new_from_slice moved from Mac to KeyInit in hmac 0.13). Held back (require dedicated code-change PRs, out of scope for a non-breaking bump): - reqwest 0.13: renames the rustls-tls feature and conflicts with forgejo-api 0.11 + matrix-sdk 0.14 which pin reqwest 0.12. - rusqlite 0.40: libsqlite3-sys 0.38 clashes with matrix-sdk-sqlite 0.14's 0.35 (single links=sqlite3) — coupled to the matrix-sdk bump. - rmcp 2.2, matrix-sdk 0.18: major API rewrites across the MCP/matrix crates.
This commit is contained in:
parent
52114c6d02
commit
d04c86e9ac
3 changed files with 126 additions and 54 deletions
|
|
@ -66,7 +66,7 @@ fn hex_encode(bytes: &[u8]) -> String {
|
|||
///
|
||||
/// Forgejo sends: `sha256=<hex>`.
|
||||
pub fn verify_signature(secret: &str, body: &[u8], header: &str) -> Result<()> {
|
||||
use hmac::{Hmac, Mac};
|
||||
use hmac::{Hmac, KeyInit, Mac};
|
||||
use sha2::Sha256;
|
||||
|
||||
let sig_hex = header
|
||||
|
|
|
|||
Loading…
Reference in a new issue