Skip to content

Commit

Permalink
fix: parallel feature flags (#583)
Browse files Browse the repository at this point in the history
* add parallel features

* fix vrf parallel
  • Loading branch information
mrain authored May 10, 2024
1 parent 8f9f9d6 commit 7d71dbe
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion elgamal/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ std = [
"jf-rescue/std", "zeroize/std",
]
gadgets = ["jf-relation", "jf-rescue/gadgets"]
parallel = ["rayon"]
parallel = ["jf-relation/parallel", "jf-rescue/parallel", "rayon"]
3 changes: 2 additions & 1 deletion merkle_tree/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ name = "merkle_path"
harness = false

[features]
default = []
default = ["parallel"]
std = [
"ark-bls12-377/std",
"ark-bls12-381/std",
Expand All @@ -65,3 +65,4 @@ std = [
gadgets = [
"jf-relation", "jf-rescue/gadgets",
]
parallel = ["jf-rescue/parallel", "jf-relation/parallel", "jf-utils/parallel"]
1 change: 1 addition & 0 deletions plonk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ parallel = [
"jf-utils/parallel",
"jf-pcs/parallel",
"jf-relation/parallel",
"jf-rescue/parallel",
"dep:rayon",
]
test-srs = []
Expand Down
3 changes: 2 additions & 1 deletion rescue/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jf-utils = { path = "../utilities", default-features = false }
ark-ed-on-bls12-381-bandersnatch = "0.4.0"

[features]
default = []
default = ["parallel"]
std = [
"ark-bls12-377/std", "ark-bls12-381/std", "ark-bn254/std",
"ark-bw6-761/std", "ark-std/std", "ark-ff/std",
Expand All @@ -44,3 +44,4 @@ std = [
"itertools/use_std", "jf-utils/std", "jf-relation/std",
]
gadgets = ["jf-relation"]
parallel = ["jf-relation/parallel"]
3 changes: 2 additions & 1 deletion signature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ harness = false
required-features = ["bls"]

[features]
default = []
default = ["parallel"]
std = [
"ark-bls12-381/std",
"ark-bn254/std",
Expand All @@ -72,3 +72,4 @@ gadgets = [
"jf-relation",
"jf-rescue/gadgets",
]
parallel = ["jf-rescue/parallel", "jf-relation/parallel", "jf-utils/parallel"]
3 changes: 2 additions & 1 deletion vrf/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ zeroize = { version = "1.5", default-features = false }
jf-utils = { path = "../utilities", default-features = false }

[features]
default = []
default = ["parallel"]
std = [
"ark-std/std", "digest/std", "jf-signature/std", "zeroize/std",
]
parallel = ["jf-signature/parallel"]

0 comments on commit 7d71dbe

Please sign in to comment.