From 185f1db1273cff2bb7ca3adaaa76e5d542ca8d3b Mon Sep 17 00:00:00 2001 From: Jack O'Connor Date: Tue, 11 Nov 2025 07:41:31 -0800 Subject: pin `generic-array` to the un-deprecated version This is a temporary hack to fix warnings in CI. Upstream tracking issue: https://github.com/RustCrypto/traits/issues/2036 --- Cargo.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 61ca47f..fd88a15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -55,7 +55,7 @@ zeroize = ["dep:zeroize", "arrayvec/zeroize"] # who use it should expect breaking changes between patch versions of this # crate. (The "*-preview" feature name follows the conventions of the RustCrypto # "signature" crate.) -traits-preview = ["dep:digest"] +traits-preview = ["dep:digest", "dep:generic-array"] # ---------- Features below this line are undocumented and unstable. ---------- # The following features are mainly intended for testing and benchmarking, and @@ -115,6 +115,9 @@ arrayvec = { version = "0.7.4", default-features = false } constant_time_eq = { version = "0.3.1", default-features = false } cfg-if = "1.0.0" digest = { version = "0.10.1", features = ["mac"], optional = true } +# HACK: `generic-array` is pinned here to silence an upstream deprecation warning. +# TODO: Remove it once https://github.com/RustCrypto/traits/issues/2036 is fixed. +generic-array = { version = "=0.14.7", default-features = false, optional = true } memmap2 = { version = "0.9", optional = true } rayon-core = { version = "1.12.1", optional = true } serde = { version = "1.0", default-features = false, features = ["derive"], optional = true } -- cgit v1.2.3