Skip to content

Commit 88a6232

Browse files
committed
Run make format after adding taplo
1 parent 8543a15 commit 88a6232

File tree

38 files changed

+482
-404
lines changed

38 files changed

+482
-404
lines changed

.rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
indent_style = "Block"
22
imports_granularity = "Crate"
3-
reorder_imports = true
3+
reorder_imports = true

Cargo.toml

Lines changed: 43 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
[workspace]
22
members = [
3-
"core",
4-
"macros",
5-
"ledger",
6-
"snark",
7-
"p2p",
8-
"p2p/testing",
9-
"p2p/libp2p-rpc-behaviour",
10-
"node",
11-
"node/account",
12-
"node/common",
13-
"node/native",
14-
"node/web",
15-
"node/invariants",
16-
"node/testing",
17-
"cli",
18-
"cli/replay_dynamic_effects",
19-
"vrf",
20-
21-
"mina-p2p-messages",
22-
"ledger",
23-
"poseidon",
24-
25-
"tools/transport",
26-
"tools/bootstrap-sandbox",
27-
"tools/gossipsub-sandbox",
28-
"tools/hash-tool",
29-
"tools/ledger-tool",
30-
"tools/salsa-simple",
31-
"tools/fuzzing",
32-
"tools/archive-breadcrumb-compare",
33-
"tools/heartbeats-processor",
34-
"tools/webrtc-sniffer",
35-
36-
"producer-dashboard",
37-
38-
"fuzzer",
3+
"core",
4+
"macros",
5+
"ledger",
6+
"snark",
7+
"p2p",
8+
"p2p/testing",
9+
"p2p/libp2p-rpc-behaviour",
10+
"node",
11+
"node/account",
12+
"node/common",
13+
"node/native",
14+
"node/web",
15+
"node/invariants",
16+
"node/testing",
17+
"cli",
18+
"cli/replay_dynamic_effects",
19+
"vrf",
20+
21+
"mina-p2p-messages",
22+
"ledger",
23+
"poseidon",
24+
25+
"tools/transport",
26+
"tools/bootstrap-sandbox",
27+
"tools/gossipsub-sandbox",
28+
"tools/hash-tool",
29+
"tools/ledger-tool",
30+
"tools/salsa-simple",
31+
"tools/fuzzing",
32+
"tools/archive-breadcrumb-compare",
33+
"tools/heartbeats-processor",
34+
"tools/webrtc-sniffer",
35+
36+
"producer-dashboard",
37+
38+
"fuzzer",
3939
]
4040

4141
resolver = "2"
@@ -46,31 +46,31 @@ arithmetic_side_effects = "warn"
4646
indexing_slicing = "warn"
4747

4848
[workspace.dependencies]
49+
ledger = { path = "ledger", package = "mina-tree" }
4950
mina-p2p-messages = { path = "mina-p2p-messages" }
5051
poseidon = { path = "poseidon" }
51-
ledger = { path = "ledger", package = "mina-tree" }
5252

53+
mina-curves = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b" }
5354
mina-hasher = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b" }
5455
mina-signer = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b" }
55-
mina-curves = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b" }
5656
# UNCOMMENTED_IN_CI mina-curves = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b", features = [ "32x9" ] }
57-
o1-utils = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b" }
5857
kimchi = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b" }
5958
mina-poseidon = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b" }
59+
o1-utils = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b" }
6060
poly-commitment = { git = "https://github.com/openmina/proof-systems", rev = "f461b4b" }
6161

62+
juniper = { version = "0.16" }
6263
libp2p = { git = "https://github.com/openmina/rust-libp2p", rev = "5c44c7d9", default-features = false }
63-
vrf = { path = "vrf" }
64+
linkme = "0.3.22"
6465
openmina-node-account = { path = "node/account" }
6566
redux = { git = "https://github.com/openmina/redux-rs.git", rev = "ab14890c", features = [
66-
"serde",
67+
"serde",
6768
] }
6869
serde = "1.0.190"
6970
serde_json = "1.0.107"
7071
serde_with = { version = "3.7.0", features = ["hex"] }
71-
linkme = "0.3.22"
7272
static_assertions = "1.1.0"
73-
juniper = { version = "0.16" }
73+
vrf = { path = "vrf" }
7474

7575
ark-ff = { version = "0.3.0", features = ["parallel", "asm", "std"] }
7676
# UNCOMMENTED_IN_CI ark-ff = { version = "0.3.0", features = [ "parallel", "asm", "std", "32x9" ] }

cli/Cargo.toml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,39 +9,39 @@ name = "openmina"
99
path = "src/main.rs"
1010

1111
[dependencies]
12-
sha2 = "0.10"
1312
hex = "0.4"
14-
rand = "0.8.0"
15-
serde = "1.0.158"
13+
ledger = { workspace = true }
14+
libp2p-identity = { version = "=0.2.7", features = ["peerid"] }
15+
mina-p2p-messages = { workspace = true }
1616
num_cpus = "1.0"
17+
rand = "0.8.0"
1718
rayon = "1.5"
18-
tokio = { version = "1.26.0" }
19-
libp2p-identity = { version = "=0.2.7", features = ["peerid"] }
2019
redux = { workspace = true }
21-
ledger = { workspace = true }
22-
mina-p2p-messages = { workspace = true }
20+
serde = "1.0.158"
21+
sha2 = "0.10"
22+
tokio = { version = "1.26.0" }
2323
vrf = { workspace = true }
2424

25-
console = "0.15.5"
26-
clap = { version = "4.3", features = [ "derive", "env" ] }
27-
time = { version = "0.3", features = ["formatting", "macros", "parsing"] }
2825
anyhow = "1.0.81"
26+
clap = { version = "4.3", features = ["derive", "env"] }
27+
console = "0.15.5"
2928
reqwest = { version = "0.11.24", features = ["blocking", "json"] }
29+
time = { version = "0.3", features = ["formatting", "macros", "parsing"] }
3030

31-
openmina-core = { path = "../core" }
32-
node = { path = "../node", features = ["replay"] }
33-
openmina-node-native = { path = "../node/native" }
34-
openmina-node-account = { path = "../node/account" }
31+
backtrace = "0.3"
3532
bytes = "1.4.0"
36-
tracing = "0.1.37"
37-
nix = { version = "0.26.2", features = ["signal"] }
38-
shellexpand = "3.1.0"
3933
dialoguer = "0.10.4"
34+
nix = { version = "0.26.2", features = ["signal"] }
35+
node = { path = "../node", features = ["replay"] }
36+
openmina-core = { path = "../core" }
37+
openmina-node-account = { path = "../node/account" }
38+
openmina-node-native = { path = "../node/native" }
4039
serde_json = "1.0.107"
41-
backtrace = "0.3"
40+
shellexpand = "3.1.0"
41+
tracing = "0.1.37"
4242

4343
[target.'cfg(not(target_family = "wasm"))'.dependencies]
44-
redux = { workspace = true, features=["serializable_callbacks"] }
44+
redux = { workspace = true, features = ["serializable_callbacks"] }
4545
tikv-jemallocator = "0.6"
4646

4747
[dev-dependencies]

cli/replay_dynamic_effects/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ name = "replay_dynamic_effects"
1010

1111
[dependencies]
1212
node = { path = "../../node", features = ["replay"] }
13-
openmina-node-native = { path = "../../node/native" }
1413
openmina-node-invariants = { path = "../../node/invariants" }
14+
openmina-node-native = { path = "../../node/native" }

clippy.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
allow-unwrap-in-tests=true
1+
allow-unwrap-in-tests = true

core/Cargo.toml

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,39 @@ edition = "2021"
55
license = "Apache-2.0"
66

77
[dependencies]
8-
lazy_static = "1.4.0"
9-
once_cell = "1"
10-
serde = { version = "1.0.147", features = ["rc"] }
11-
serde_json = "1.0"
12-
slab = { version = "0.4.7", features = ["serde"] }
13-
tracing = { version = "0.1", features = ["std"] }
14-
sha2 = "0.10.6"
8+
argon2 = { version = "0.5.3", features = ["std"] }
9+
base64 = "0.22"
1510
binprot = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" }
1611
binprot_derive = { git = "https://github.com/openmina/binprot-rs", rev = "400b52c" }
17-
rand = "0.8.0"
18-
redux = { workspace = true }
19-
tokio = { version = "1.26", features = ["sync"] }
12+
bs58 = "0.4.0"
13+
crypto_secretbox = { version = "0.1.1", features = ["std"] }
2014
flume = { version = "0.11.1", features = ["async", "spin"] }
21-
time = { version = "0.3", features = ["formatting", "macros", "parsing"] }
15+
lazy_static = "1.4.0"
2216
md5 = "0.7.0"
2317
multihash = { version = "0.18.1", features = ["blake2b"] }
24-
openmina-macros = { path = "../macros" }
18+
once_cell = "1"
2519
openmina-fuzzer = { path = "../fuzzer", optional = true }
26-
argon2 = { version = "0.5.3", features = ["std"] }
27-
crypto_secretbox = { version = "0.1.1", features = ["std"] }
28-
base64 = "0.22"
29-
bs58 = "0.4.0"
20+
openmina-macros = { path = "../macros" }
21+
rand = "0.8.0"
22+
redux = { workspace = true }
23+
serde = { version = "1.0.147", features = ["rc"] }
24+
serde_json = "1.0"
25+
sha2 = "0.10.6"
26+
slab = { version = "0.4.7", features = ["serde"] }
3027
thiserror = "1.0.37"
28+
time = { version = "0.3", features = ["formatting", "macros", "parsing"] }
29+
tokio = { version = "1.26", features = ["sync"] }
30+
tracing = { version = "0.1", features = ["std"] }
3131

3232
graphannis-malloc_size_of = { workspace = true }
3333
graphannis-malloc_size_of_derive = { workspace = true }
3434

35+
ark-ff = { workspace = true }
36+
hex = "0.4.3"
37+
libp2p-identity = { version = "=0.2.7", features = ["serde", "peerid"] }
3538
mina-hasher = { workspace = true }
3639
mina-p2p-messages = { workspace = true }
3740
poseidon = { workspace = true }
38-
hex = "0.4.3"
39-
ark-ff = { workspace = true }
40-
libp2p-identity = { version = "=0.2.7", features = [
41-
"serde",
42-
"peerid"
43-
] }
4441

4542
[target.'cfg(not(target_family = "wasm"))'.dependencies]
4643
redux = { workspace = true, features = ["serializable_callbacks"] }

fuzzer/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2021"
55
license = "Apache-2.0"
66

77
[dependencies]
8-
rand = { version = "0.8", features = [ "small_rng" ] }
9-
rand_distr = "0.4.3"
108
lazy_static = "1.4.0"
11-
serde = { workspace = true, features = [ "derive" ] }
9+
rand = { version = "0.8", features = ["small_rng"] }
10+
rand_distr = "0.4.3"
11+
serde = { workspace = true, features = ["derive"] }
1212
serde_json = { workspace = true }

ledger/Cargo.toml

Lines changed: 31 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,39 @@ crate-type = ["staticlib", "cdylib", "lib"]
1717
# https://stackoverflow.com/a/73023306
1818

1919
[dependencies]
20-
openmina-core = { path = "../core" }
21-
redux = { workspace = true }
20+
juniper = { workspace = true }
21+
kimchi = { workspace = true }
22+
mina-curves = { workspace = true }
2223
mina-hasher = { workspace = true }
24+
mina-poseidon = { workspace = true }
2325
mina-signer = { workspace = true }
24-
mina-curves = { workspace = true }
2526
o1-utils = { workspace = true }
26-
kimchi = { workspace = true }
27-
mina-poseidon = { workspace = true }
27+
openmina-core = { path = "../core" }
28+
openmina-macros = { path = "../macros" }
2829
poly-commitment = { workspace = true }
29-
juniper = { workspace = true }
3030
poseidon = { workspace = true }
31-
openmina-macros = { path = "../macros" }
31+
redux = { workspace = true }
3232
strum = "0.26.2"
3333
strum_macros = "0.26.4"
3434

3535
bs58 = "0.4.0"
3636
mina-p2p-messages = { workspace = true }
3737

38-
sha2 = "0.10"
3938
base64 = "0.13"
4039
lazy_static = "1.4.0"
4140
libc = "0.2"
41+
sha2 = "0.10"
4242

4343
# oracle = { path = "../oracle" }
4444
# mina-curves = { path = "../curves" }
4545
# o1-utils = { path = "../utils" }
4646

4747
itertools = "0.10"
4848

49+
ark-ec = { version = "0.3.0", features = ["std"] }
4950
ark-ff = { workspace = true }
50-
ark-ec = { version = "0.3.0", features = [ "std" ] }
51-
ark-serialize = { version = "0.3.0", features = [ "std" ] }
52-
ark-poly = { version = "0.3.0", features = [ "std" ] }
51+
ark-poly = { version = "0.3.0", features = ["std"] }
52+
ark-serialize = { version = "0.3.0", features = ["std"] }
5353

5454
rayon = "1.5"
5555

@@ -58,21 +58,23 @@ hex = "0.4.3"
5858
num-bigint = "0.4"
5959

6060
once_cell = "1"
61-
rand = {version = "0.8", features = [ "small_rng" ] }
62-
uuid = { version = "1", features = [ "v4" ] }
61+
rand = { version = "0.8", features = ["small_rng"] }
62+
uuid = { version = "1", features = ["v4"] }
6363

64+
postcard = { version = "1.0.9", features = ["use-std"] }
6465
serde = { version = "1.0", features = ["rc"] }
6566
serde_json = { version = "1.0", features = ["float_roundtrip"] }
66-
postcard = { version = "1.0.9", features = ["use-std"] }
6767

68+
anyhow = "1.0.75"
6869
backtrace = "0.3"
69-
derive_more = "0.99.17"
7070
blake2 = "0.10"
7171
crc32fast = "1"
72+
derive_more = "0.99.17"
73+
fraction = { version = "=0.15.1", default-features = false, features = [
74+
"with-serde-support",
75+
] }
7276
serde_with = "3.6.1"
73-
anyhow = "1.0.75"
7477
thiserror = "1.0.60"
75-
fraction = { version = "=0.15.1", default-features = false, features = ["with-serde-support"] }
7678

7779
[target.'cfg(target_family = "wasm")'.dependencies]
7880
getrandom = { version = "0.2", features = ["js"] }
@@ -94,7 +96,18 @@ rsa = "0.9"
9496

9597
[target.'cfg(target_family = "wasm")'.dev-dependencies]
9698
wasm-bindgen-test = "0.3.0"
97-
web-sys = { version = "0.3", features = ["Blob", "DedicatedWorkerGlobalScope", "MessageEvent", "Url", "Worker", "WorkerType", "WorkerOptions", "console", "Window", "Performance" ] }
99+
web-sys = { version = "0.3", features = [
100+
"Blob",
101+
"DedicatedWorkerGlobalScope",
102+
"MessageEvent",
103+
"Url",
104+
"Worker",
105+
"WorkerType",
106+
"WorkerOptions",
107+
"console",
108+
"Window",
109+
"Performance",
110+
] }
98111

99112
[features]
100113
# Put zstd behind a feature, cargo always re-compile it without touching the files

macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = "openmina-macros"
33
version = "0.16.0"
44
edition = "2021"
55
license = "Apache-2.0"
6-
authors = [ "Alexander Koptelov <[email protected]>" ]
6+
authors = ["Alexander Koptelov <[email protected]>"]
77

88
[lib]
99
proc-macro = true

0 commit comments

Comments
 (0)