Repository navigation
Expand file tree
/
Copy pathCargo.toml
More file actions
77 lines (66 loc) · 2.61 KB
/
Copy pathCargo.toml
File metadata and controls
77 lines (66 loc) · 2.61 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
[workspace]
resolver = "2"
members = [
"crates/zutreexo-accumulator",
"crates/zutreexo-chain",
"crates/zutreexo-bridge",
"crates/zutreexo-csn",
"crates/zutreexo-testkit",
]
[workspace.package]
version = "0.0.0"
edition = "2021"
rust-version = "1.85"
license = "MIT OR Apache-2.0"
repository = "https://github.com/USCMigs/zutreexo"
authors = ["zutreexo contributors"]
publish = false
[workspace.dependencies]
# `version` alongside `path` is deliberate. A path-only dependency carries no
# version requirement, which is a wildcard (`*`), and `deny.toml` sets
# `wildcards = "deny"` — so omitting it fails the cargo-deny CI job even though
# these are internal crates that are never published. Keep these in step with
# `workspace.package.version` above.
zutreexo-accumulator = { path = "crates/zutreexo-accumulator", version = "0.0.0" }
zutreexo-chain = { path = "crates/zutreexo-chain", version = "0.0.0" }
zutreexo-csn = { path = "crates/zutreexo-csn", version = "0.0.0" }
zutreexo-bridge = { path = "crates/zutreexo-bridge", version = "0.0.0" }
zutreexo-testkit = { path = "crates/zutreexo-testkit", version = "0.0.0" }
blake2b_simd = "1.0"
rustreexo = "0.7"
thiserror = "2.0"
# Block and transaction deserialization for replay. CLAUDE.md §3: Zebra is the
# source of truth, and consensus-critical parsing is not vendored. 12.0.0 is the
# first published version carrying `src/ironwood.rs`, so it can parse the pool
# that activated at 3,428,143 — anything older silently cannot.
zebra-chain = "12.0"
criterion = "0.8"
hex = "0.4"
proptest = "1.11"
# Checkpoint files and repro dumps only. Already in the tree via zebra-chain,
# so this adds no new licence surface.
serde_json = "1.0"
# Lints applied to every crate in the workspace. See CLAUDE.md §5 rule 3: no
# unwrap/panic in accumulator or apply paths, because a panic in block
# application is a remote crash vector. `clippy.toml` exempts test code, where
# panicking is the point.
[workspace.lints.rust]
missing_docs = "warn"
unsafe_code = "forbid"
[workspace.lints.clippy]
unwrap_used = "deny"
expect_used = "deny"
panic = "deny"
indexing_slicing = "deny"
todo = "deny"
unimplemented = "deny"
# Integer overflow is a consensus bug, not a wrapping convenience. Zebra takes
# the same position. `clippy::arithmetic_side_effects` is deliberately *not*
# denied above: it fires on every `i + 1` and pushes the real checks into noise.
# Explicit `checked_*` guards the boundaries that can actually overflow (leaf
# counts, tree indices, deserialization lengths); this catches the rest.
[profile.release]
overflow-checks = true
[profile.bench]
debug = true
overflow-checks = true