forked from openmina/openmina
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
108 lines (85 loc) · 3.23 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[package]
name = "mina-tree"
version = "0.6.0"
edition = "2021"
license = "Apache-2.0"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "ledger"
path = "src/bin/ledger.rs"
[lib]
crate-type = ["staticlib", "cdylib", "lib"]
# For wasm on browser, add those flags:
# https://stackoverflow.com/a/73023306
[dependencies]
openmina-core = { path = "../core" }
mina-hasher = { workspace = true }
mina-signer = { workspace = true }
mina-curves = { workspace = true }
o1-utils = { workspace = true }
kimchi = { workspace = true }
mina-poseidon = { workspace = true }
poly-commitment = { workspace = true }
bs58 = "0.4.0"
mina-p2p-messages = { workspace = true, features = ["hashing"] }
sha2 = "0.10"
base64 = "0.13"
static_assertions = "1.1"
lazy_static = "1.4.0"
libc = "0.2"
# oracle = { path = "../oracle" }
# mina-curves = { path = "../curves" }
# o1-utils = { path = "../utils" }
itertools = "0.10"
tuple-map = "0.4.0"
ark-ff = { git = "https://github.com/openmina/algebra", branch = "openmina", features = [ "parallel", "asm", "std" ] }
ark-ec = { git = "https://github.com/openmina/algebra", branch = "openmina", features = [ "std" ] }
ark-serialize = { git = "https://github.com/openmina/algebra", branch = "openmina", features = [ "std" ] }
ark-poly = { git = "https://github.com/openmina/algebra", branch = "openmina", features = [ "std" ] }
rayon = "1"
bitvec = "1.0.0"
hex = "0.4.3"
num-bigint = "0.4"
once_cell = "1"
rand = {version = "0.8", features = [ "small_rng" ] }
uuid = { version = "1", features = [ "v4" ] }
serde = { version = "1.0", features = ["rc"] }
serde_json = { version = "1.0", features = ["float_roundtrip"] }
postcard = { version = "1.0.8", features = ["use-std"] }
backtrace = "0.3"
derive_more = "0.99.17"
rand_pcg = "0.3"
rand_seeder = "0.2"
blake2 = "0.10"
crc32fast = "1"
chrono = "0.4"
serde_with = "3.6.1"
anyhow = "1.0.75"
thiserror = "1.0.60"
[target.'cfg(target_family = "wasm")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
wasm_thread = { version = "0.2", features = [ "es_modules" ] }
wasm-bindgen = "0.2"
[target.'cfg(not(target_family = "wasm"))'.dependencies]
zstd = { version = "0.12", optional = true }
# ocaml-interop = { path = "/home/sebastien/github/ocaml-interop", optional = true }
ocaml-interop = { git = "https://github.com/sebastiencs/ocaml-interop.git", branch = "closure-values", optional = true }
# ocaml-interop = { git = "https://github.com/tizoc/ocaml-interop.git", branch = "closure-values", optional = true }
[target.'cfg(target_family = "wasm")'.dev-dependencies]
wasm-bindgen-test = "0.3.0"
web-sys = { version = "0.3", features = ["Blob", "DedicatedWorkerGlobalScope", "MessageEvent", "Url", "Worker", "WorkerType", "WorkerOptions", "console", "Window", "Performance" ] }
[features]
# Put zstd behind a feature, cargo always re-compile it without touching the files
compression = ["zstd"]
# Add this feature to run tests in both nodejs and browser:
# https://github.com/rustwasm/wasm-bindgen/issues/2571
in_nodejs = []
[profile.release]
debug = true
# Run tests in CI with this profile
# https://doc.rust-lang.org/cargo/reference/profiles.html
[profile.ci]
inherits = "release"
debug = true
debug-assertions = true
overflow-checks = true