Place bellman multicore operations behind a (default) feature flag

Co-authored-by: Jack Grigg <jack@z.cash>
This commit is contained in:
Sean Bowe
2018-11-04 15:36:11 -07:00
committed by Jack Grigg
parent d7ba310294
commit 8c5cd4e4f6
3 changed files with 155 additions and 87 deletions

View File

@@ -13,16 +13,17 @@ rand = "0.4"
bit-vec = "0.4.4"
ff = { path = "../ff" }
futures = "0.1"
futures-cpupool = "0.1"
futures-cpupool = { version = "0.1", optional = true }
group = { path = "../group" }
num_cpus = "1"
crossbeam = "0.3"
num_cpus = { version = "1", optional = true }
crossbeam = { version = "0.3", optional = true }
pairing = { path = "../pairing", optional = true }
byteorder = "1"
[features]
groth16 = ["pairing"]
default = ["groth16"]
multicore = ["futures-cpupool", "crossbeam", "num_cpus"]
default = ["groth16", "multicore"]
[[test]]
name = "mimc"