From d02a5fc351106cbfb2fc32edd64caf4294ff4519 Mon Sep 17 00:00:00 2001 From: Alexander Abdugafarov Date: Wed, 24 Dec 2025 20:15:51 +0500 Subject: [PATCH 1/4] Downgrade `rand` to 0.9 --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 34c17f7..a63d828 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ pastey = "0" thiserror = "2" # Wrapped crates -crypto-bigint = { version = "0.7.0-rc.10", default-features = false, optional = true } +crypto-bigint = { version = "<= 0.7.0-rc.9", default-features = false, optional = true } ark-std = { version = "0.5", default-features = false, optional = true } ark-ff = { version = "0.5", default-features = false, optional = true } ark-serialize = { version = "0.5", default-features = false, optional = true } @@ -81,7 +81,7 @@ crypto-primitives = { path = "." } crypto-primitives-proc-macros = { path = "proc-macros" } num-traits = { version = "0.2", default-features = false } proptest = { version = "1", default-features = false, features = ["alloc"] } -rand = { version = "0.10.0-rc.1", default-features = false } +rand = { version = "0.9", default-features = false } criterion = "0.7.0" [workspace.lints.rust] From 4d25cfddd38539a26a12377bfbbe8b006f07c1d9 Mon Sep 17 00:00:00 2001 From: Alexander Abdugafarov Date: Thu, 25 Dec 2025 14:44:13 +0500 Subject: [PATCH 2/4] Another attempt to do the same --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a63d828..09398fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -81,7 +81,7 @@ crypto-primitives = { path = "." } crypto-primitives-proc-macros = { path = "proc-macros" } num-traits = { version = "0.2", default-features = false } proptest = { version = "1", default-features = false, features = ["alloc"] } -rand = { version = "0.9", default-features = false } +rand = { version = "~0.9", default-features = false } criterion = "0.7.0" [workspace.lints.rust] From 7c1d22212f1de7fafcb0caecc715631a25af1701 Mon Sep 17 00:00:00 2001 From: Alexander Abdugafarov Date: Thu, 25 Dec 2025 16:24:10 +0500 Subject: [PATCH 3/4] Changed crypto-bigint to be some RC in v0.7 line --- Cargo.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 09398fc..6f6309b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,7 +19,7 @@ pastey = "0" thiserror = "2" # Wrapped crates -crypto-bigint = { version = "<= 0.7.0-rc.9", default-features = false, optional = true } +crypto-bigint = { version = ">= 0.7.0-rc.0, <= 0.7.0-rc.9", default-features = false, optional = true } ark-std = { version = "0.5", default-features = false, optional = true } ark-ff = { version = "0.5", default-features = false, optional = true } ark-serialize = { version = "0.5", default-features = false, optional = true } @@ -41,7 +41,7 @@ default = ["std"] rand = ["dep:rand", "crypto-bigint/rand_core"] serde = ["dep:serde", "crypto-bigint/serde"] -zeroize = ["dep:zeroize"] +zeroize = ["dep:zeroize", "crypto-bigint/zeroize"] std = ["num-traits/std", "ark-std/std", "ark-ff/std", "serde/std", "rand/std", "zeroize/std"] ark_std = ["dep:ark-std"] From bae4e84048b7b22b719f4f840b6b3995856480e5 Mon Sep 17 00:00:00 2001 From: Alexander Abdugafarov Date: Thu, 25 Dec 2025 18:37:18 +0500 Subject: [PATCH 4/4] Remove `crypto-bigint/zeroize` to be done as a separate PR --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6f6309b..8835755 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ default = ["std"] rand = ["dep:rand", "crypto-bigint/rand_core"] serde = ["dep:serde", "crypto-bigint/serde"] -zeroize = ["dep:zeroize", "crypto-bigint/zeroize"] +zeroize = ["dep:zeroize"] std = ["num-traits/std", "ark-std/std", "ark-ff/std", "serde/std", "rand/std", "zeroize/std"] ark_std = ["dep:ark-std"]