forked from 0xMiden/node
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
142 lines (130 loc) · 6.36 KB
/
Cargo.toml
File metadata and controls
142 lines (130 loc) · 6.36 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
131
132
133
134
135
136
137
138
139
140
141
142
[workspace]
members = [
"bin/network-monitor",
"bin/node",
"bin/remote-prover",
"bin/stress-test",
"crates/block-producer",
"crates/db",
"crates/grpc-error-macro",
"crates/ntx-builder",
"crates/proto",
"crates/remote-prover-client",
"crates/rocksdb-cxx-linkage-fix",
"crates/rpc",
"crates/store",
"crates/test-macro",
"crates/utils",
"crates/validator",
"proto",
]
resolver = "2"
[workspace.package]
authors = ["Miden contributors"]
edition = "2024"
exclude = [".github/"]
homepage = "https://miden.xyz"
license = "MIT"
readme = "README.md"
repository = "https://github.com/0xMiden/miden-node"
rust-version = "1.90"
version = "0.14.0"
# Optimize the cryptography for faster tests involving account creation.
[profile.test.package.miden-crypto]
opt-level = 2
# Avoid running the expensive debug assertion in winter-prover
[profile.test.package.winter-prover]
debug-assertions = false
[profile.release]
debug = true
[workspace.dependencies]
# Workspace crates.
miden-node-block-producer = { path = "crates/block-producer", version = "0.14" }
miden-node-db = { path = "crates/db", version = "0.14" }
miden-node-grpc-error-macro = { path = "crates/grpc-error-macro", version = "0.14" }
miden-node-ntx-builder = { path = "crates/ntx-builder", version = "0.14" }
miden-node-proto = { path = "crates/proto", version = "0.14" }
miden-node-proto-build = { path = "proto", version = "0.14" }
miden-node-rpc = { path = "crates/rpc", version = "0.14" }
miden-node-store = { path = "crates/store", version = "0.14" }
miden-node-test-macro = { path = "crates/test-macro" }
miden-node-utils = { path = "crates/utils", version = "0.14" }
miden-node-validator = { path = "crates/validator", version = "0.14" }
miden-remote-prover-client = { path = "crates/remote-prover-client", version = "0.14" }
# Temporary workaround until <https://github.com/rust-rocksdb/rust-rocksdb/pull/1029>
# is part of `rocksdb-rust` release
miden-node-rocksdb-cxx-linkage-fix = { path = "crates/rocksdb-cxx-linkage-fix", version = "0.14" }
# miden-base aka protocol dependencies. These should be updated in sync.
miden-block-prover = { branch = "next", git = "https://github.com/0xMiden/miden-base" }
miden-protocol = { branch = "next", default-features = false, git = "https://github.com/0xMiden/miden-base" }
miden-standards = { branch = "next", git = "https://github.com/0xMiden/miden-base" }
miden-testing = { branch = "next", git = "https://github.com/0xMiden/miden-base" }
miden-tx = { branch = "next", default-features = false, git = "https://github.com/0xMiden/miden-base" }
miden-tx-batch-prover = { branch = "next", git = "https://github.com/0xMiden/miden-base" }
# Other miden dependencies. These should align with those expected by miden-base.
miden-air = { features = ["std", "testing"], version = "0.20" }
miden-crypto = { default-features = false, version = "0.19" }
# External dependencies
anyhow = { version = "1.0" }
assert_matches = { version = "1.5" }
async-trait = { version = "0.1" }
clap = { features = ["derive"], version = "4.5" }
deadpool = { default-features = false, version = "0.12" }
deadpool-diesel = { version = "0.6" }
deadpool-sync = { default-features = false, version = "0.1" }
diesel = { version = "2.3" }
diesel_migrations = { version = "2.3" }
fs-err = { version = "3" }
futures = { version = "0.3" }
hex = { version = "0.4" }
http = { version = "1.3" }
humantime = { version = "2.2" }
indexmap = { version = "2.12" }
itertools = { version = "0.14" }
libsqlite3-sys = { features = ["bundled"], version = "0.35" }
lru = { default-features = false, version = "0.16" }
pretty_assertions = { version = "1.4" }
# prost and protox are from different authors and are _not_ released in
# lockstep, nor are they adhering to semver semantics. We keep this
# to avoid future breakage.
prost = { default-features = false, version = "=0.14.3" }
protox = { version = "=0.9.1" }
rand = { version = "0.9" }
rand_chacha = { version = "0.9" }
rstest = { version = "0.26" }
serde = { features = ["derive"], version = "1" }
thiserror = { default-features = false, version = "2.0" }
tokio = { features = ["rt-multi-thread"], version = "1.46" }
tokio-stream = { version = "0.1" }
tokio-util = { version = "0.7" }
toml = { version = "0.9" }
tonic = { default-features = false, version = "0.14" }
tonic-health = { version = "0.14" }
tonic-prost = { version = "0.14" }
tonic-prost-build = { version = "0.14" }
tonic-reflection = { version = "0.14" }
tower = { version = "0.5" }
tower-http = { features = ["cors", "trace"], version = "0.6" }
tracing = { version = "0.1" }
tracing-subscriber = { features = ["env-filter", "fmt", "json"], version = "0.3" }
url = { features = ["serde"], version = "2.5" }
# Lints are set to warn for development, which are promoted to errors in CI.
[workspace.lints.clippy]
# Pedantic lints are set to a lower priority which allows lints in the group to be selectively enabled.
pedantic = { level = "warn", priority = -1 }
allow_attributes = "deny"
cast_possible_truncation = "allow" # Overly many instances especially regarding indices.
collapsible-if = "allow" # Too new to enforce.
from_iter_instead_of_collect = "allow" # at times `FromIter` is much more readable
ignored_unit_patterns = "allow" # Stylistic choice.
large_types_passed_by_value = "allow" # Triggered by BlockHeader being Copy + 334 bytes.
missing_errors_doc = "allow" # TODO: fixup and enable this.
missing_panics_doc = "allow" # TODO: fixup and enable this.
module_name_repetitions = "allow" # Many triggers, and is a stylistic choice.
must_use_candidate = "allow" # This marks many fn's which isn't helpful.
needless_for_each = "allow" # Context dependent if that's useful.
should_panic_without_expect = "allow" # We don't care about the specific panic message.
# End of pedantic lints.
# Configure `cargo-typos`
[workspace.metadata.typos]
files.extend-exclude = ["*.svg"] # Ignore SVG files.