From 26497a636b1a40135800421d0a058134da9c9c7c Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Sun, 28 Jul 2024 21:10:40 +0300 Subject: [PATCH 1/2] Make dependency on ark-relations conditional Remove the dependency on ark-relations/std because it is not needed. Make ark-relations (without fetures) a conditional dependency, only enabled for r1cs where it is required. --- crypto-primitives/Cargo.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto-primitives/Cargo.toml b/crypto-primitives/Cargo.toml index a3c9bc5..1b768ec 100644 --- a/crypto-primitives/Cargo.toml +++ b/crypto-primitives/Cargo.toml @@ -20,7 +20,7 @@ ark-crypto-primitives-macros = { version = "^0.4.0", path = "../macros" } ark-ff = { version = "^0.4.0", default-features = false } ark-ec = { version = "^0.4.0", default-features = false } ark-std = { version = "^0.4.0", default-features = false } -ark-relations = { version = "^0.4.0", default-features = false } +ark-relations = { version = "^0.4.0", optional = true, default-features = false } ark-serialize = { version = "^0.4.0", default-features = false, features = [ "derive" ] } blake2 = { version = "0.10", default-features = false } @@ -37,10 +37,10 @@ hashbrown = { version = "0.14", default-features = false, features = ["inline-mo [features] default = ["std"] -std = [ "ark-ff/std", "ark-ec/std", "ark-std/std", "ark-relations/std" ] +std = [ "ark-ff/std", "ark-ec/std", "ark-std/std" ] print-trace = [ "ark-std/print-trace" ] parallel = [ "std", "rayon", "ark-ec/parallel", "ark-std/parallel", "ark-ff/parallel" ] -r1cs = [ "ark-r1cs-std", "tracing" ] +r1cs = [ "ark-r1cs-std", "ark-relations", "tracing"] crh = [ "sponge" ] sponge = [] commitment = ["crh"] From 986a4b86281fc48b433874c019b391906a0c08da Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Sun, 28 Jul 2024 21:21:00 +0300 Subject: [PATCH 2/2] Changelog entry for #146 --- CHANGELOG.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8b8d846..18c6239 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,9 @@ ### Improvements +- [\#146](https://github.com/arkworks-rs/crypto-primitives/pull/146) Make dependency on +`ark-relations` optional, do not depend on it for the `std` feature. + ### Bugfixes ## v0.4.0