forked from matter-labs/bellman
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
61 lines (49 loc) · 2.04 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[package]
authors = ["Sean Bowe <[email protected]>", "Alex Vlasov <[email protected]>", "Alex Gluchowski <[email protected]"]
description = "zk-SNARK library"
documentation = "https://github.com/matter-labs/bellman"
homepage = "https://github.com/matter-labs/bellman"
license = "MIT/Apache-2.0"
name = "bellman_ce"
repository = "https://github.com/matter-labs/bellman"
version = "0.3.2"
edition = "2018"
[lib]
crate-type = ["cdylib", "lib", "staticlib"]
[dependencies]
rand = "0.4"
bit-vec = "0.6"
cfg-if = "0.1"
# pairing = {package = "pairing_ce", path = "../pairing" }
pairing = {package = "pairing_ce", version = "0.22.*" }
byteorder = "1"
futures= {package = "futures", version = "0.3", default_features = false, features = ["executor"]}
num_cpus = "1"
crossbeam = {version = "0.7", optional = true}
prefetch = {version = "0.2", optional = true}
web-sys = {version = "0.3", optional = true, features = ["console", "Performance", "Window"]}
tiny-keccak = {version = "1.5", optional = true}
blake2-rfc = {version = "0.2.18", optional = true}
blake2s_simd = {version = "0.5", optional = true}
lazy_static = {version = "1", optional = true}
blake2s_const = {version = "0.6", optional = true, path = "./src/plonk/blake2_const/blake2s/"}
# rescue_hash = {git = "https://github.com/shamatar/rescue_hash.git", optional = true }
rescue_hash = {path = "../rescue_hash", optional = true }
poseidon_hash = {path = "../poseidon_hash", optional = true }
hex = "*"
[features]
# default = ["multicore"]
default = ["multicore", "plonk"]
# default = ["multicore", "plonk", "marlin"]
#default = ["multicore", "nightly"]
#default = ["wasm"]
multicore = ["crossbeam", "futures/thread-pool"]
sonic = ["tiny-keccak", "blake2-rfc"]
gm17 = []
nolog = []
plonk = ["blake2s_simd", "lazy_static", "tiny-keccak", "blake2s_const"]
redshift = ["plonk", "rescue_hash", "poseidon_hash"]
# plonk = ["blake2s_simd", "lazy_static", "tiny-keccak", "blake2s_const", "rescue_hash", "poseidon_hash"]
marlin = ["blake2s_simd", "tiny-keccak", "blake2s_const"]
wasm = ["web-sys"]
nightly = ["prefetch"]