forked from o1-labs/mina-rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
130 lines (107 loc) · 3.29 KB
/
Copy pathCargo.toml
File metadata and controls
130 lines (107 loc) · 3.29 KB
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
[package]
name = "mina-tree"
version = "0.16.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]
juniper = { workspace = true }
kimchi = { workspace = true }
mina-curves = { workspace = true }
mina-hasher = { workspace = true }
mina-poseidon = { workspace = true }
mina-signer = { workspace = true }
o1-utils = { workspace = true }
openmina-core = { path = "../core" }
openmina-macros = { path = "../macros" }
poly-commitment = { workspace = true }
poseidon = { workspace = true }
redux = { workspace = true }
strum = "0.26.2"
strum_macros = "0.26.4"
bs58 = "0.4.0"
mina-p2p-messages = { workspace = true }
base64 = "0.13"
lazy_static = "1.4.0"
libc = "0.2"
sha2 = "0.10"
# oracle = { path = "../oracle" }
# mina-curves = { path = "../curves" }
# o1-utils = { path = "../utils" }
itertools = "0.12"
ark-ec = { version = "0.3.0", features = ["std"] }
ark-ff = { workspace = true }
ark-poly = { version = "0.3.0", features = ["std"] }
ark-serialize = { version = "0.3.0", features = ["std"] }
rayon = "1.5"
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"] }
postcard = { version = "1.0.9", features = ["use-std"] }
serde = { version = "1.0", features = ["rc"] }
serde_json = { version = "1.0", features = ["float_roundtrip"] }
anyhow = "1.0.75"
backtrace = "0.3"
blake2 = "0.10"
crc32fast = "1"
derive_more = "0.99.17"
fraction = { version = "=0.15.1", default-features = false, features = [
"with-serde-support",
] }
serde_with = "3.6.1"
thiserror = "1.0.60"
[target.'cfg(target_family = "wasm")'.dependencies]
getrandom = { version = "0.2", features = ["js"] }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
[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 }
reqwest = { version = "0.11.24", features = ["blocking"] }
[dev-dependencies]
rand_pcg = "0.3"
rand_seeder = "0.2"
tuple-map = "0.4.0"
rsa = "0.9"
[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 = []
fuzzing = []
[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