-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
77 lines (69 loc) · 3.54 KB
/
Copy pathCargo.toml
File metadata and controls
77 lines (69 loc) · 3.54 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
[workspace]
resolver = "3"
members = ["crates/*"]
[workspace.package]
version = "0.0.0"
edition = "2024"
rust-version = "1.97"
license = "MIT"
repository = "https://github.com/NyxFoundation/verity"
authors = ["Nyx Foundation"]
# Lints are defined once here and inherited by every crate via `[lints] workspace = true`.
# `unsafe_code` is denied workspace-wide; per ARCHITECTURE.md the only crate allowed to opt back
# in is `verity-consensus-sys` (the FFI boundary), which will override this locally when it lands.
[workspace.lints.rust]
unsafe_code = "deny"
[workspace.lints.clippy]
all = { level = "warn", priority = -1 }
# Every external dependency is declared once here and inherited by members with
# `workspace = true`, so a version appears in exactly one place in the tree.
[workspace.dependencies]
# --- Post-quantum signatures ---------------------------------------------------------------
# XMSS sign / verify per validator. Rev-pinned rather than branch-tracked (kickoff decision,
# 2026-07-22): a branch head can move under us between CI runs and a lockfile alone would not
# make that visible in review.
#
# The rev is the head of leanSig's `devnet4` branch, not of `main`. The two have diverged, and
# `devnet4` is what both other Rust lean clients run against (ream and ethlambda each track that
# branch). Bump this by re-reading what those clients track, not by following `main`.
#
# `version` is redundant for resolution — the rev already determines the code — but a git
# dependency without one is a wildcard requirement, which `deny.toml` bans.
#
# Pinning this rev is necessary but NOT sufficient. leanSig itself depends on Plonky3 with neither
# rev nor branch, so a fresh resolve floats it to that repository's HEAD, which no longer compiles
# against leanSig. Plonky3 is therefore pinned in Cargo.lock (`cargo update p3-field --precise`) —
# it cannot be pinned here, because cargo drops a `[patch]` whose version cannot satisfy Plonky3's
# own intra-workspace requirements. A bare `cargo update` refloats it and breaks the build; see
# CLAUDE.md for the full trap.
leansig = { git = "https://github.com/leanEthereum/leanSig", rev = "15cbdd43ec8525aa43fea2f42cafc5ed366084ae", version = "0.1.0" }
# --- SSZ -----------------------------------------------------------------------------------
# lambdaclass' implementation. NyxFoundation/leanSSZ (proven in Lean, C ABI PoC complete) is the
# future Lean-adoption candidate and is deliberately not adopted yet.
#
# Note leansig depends on `ethereum_ssz` internally, so two SSZ implementations coexist
# transitively. Harmless, but conversions at the signature boundary are explicit, not free.
libssz = "0.2.2"
libssz-derive = "0.2.2"
libssz-merkle = "0.2.2"
libssz-types = "0.2.2"
# --- Networking ----------------------------------------------------------------------------
# Upstream rust-libp2p, unforked. `default-features = false` keeps the transport set to what the
# lean network actually uses: QUIC for transport, gossipsub for broadcast, request-response for
# the ReqResp protocols. `macros` is the `NetworkBehaviour` derive; `identify` and `ping` are the
# baseline peer-management protocols.
libp2p = { version = "0.56", default-features = false, features = [
"quic",
"gossipsub",
"request-response",
"identify",
"ping",
"macros",
"tokio",
"noise",
"yamux",
"secp256k1",
] }
# --- Storage -------------------------------------------------------------------------------
# See ARCHITECTURE.md "Storage engine and retention" for why an LSM engine and not a B-tree one.
rocksdb = "0.24"