-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathCargo.toml
More file actions
108 lines (98 loc) · 3.35 KB
/
Copy pathCargo.toml
File metadata and controls
108 lines (98 loc) · 3.35 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
[workspace]
members = [
"benchmark",
"ffi",
"firewood-macros",
"metrics",
"firewood",
"fwdctl",
"replay",
"storage",
"triehash",
]
resolver = "2"
[workspace.package]
edition = "2024"
license-file = "LICENSE.md"
homepage = "https://avalabs.org"
repository = "https://github.com/ava-labs/firewood"
readme = "README.md"
rust-version = "1.94.0"
[profile.release]
debug = true
[profile.maxperf]
panic = "abort"
codegen-units = 1
lto = "fat"
debug = false
inherits = "release"
[workspace.lints.rust]
unsafe_code = "deny"
missing_debug_implementations = "warn"
[workspace.lints.clippy]
unwrap_used = "warn"
indexing_slicing = "warn"
explicit_deref_methods = "warn"
missing_const_for_fn = "warn"
arithmetic_side_effects = "warn"
undocumented_unsafe_blocks = "deny"
str_to_string = "warn"
# lower the priority of pedantic to allow overriding the lints it includes
pedantic = { level = "warn", priority = -1 }
# These lints are from pedantic but allowed. They are a bit too pedantic and
# encourage making backwards incompatible changes.
needless_pass_by_value = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
# Ignore interger casts. This is to avoid unnecessary `try_into` calls for usize
# to u64 and vice versa and should be re-enabled if/when clippy has a separate
# lint for usize vs non-usize truncation.
cast_possible_truncation = "allow"
[patch.crates-io]
metrics = { git = "https://github.com/demosdemon/metrics.git", rev = "b12dd4b4ab096147199520f9cc1b47fbd8186f10" }
metrics-util = { git = "https://github.com/demosdemon/metrics.git", rev = "b12dd4b4ab096147199520f9cc1b47fbd8186f10" }
metrics-exporter-prometheus = { git = "https://github.com/demosdemon/metrics.git", rev = "b12dd4b4ab096147199520f9cc1b47fbd8186f10" }
[workspace.dependencies]
# workspace local packages
firewood = { path = "firewood", version = "0.8.0" }
firewood-macros = { path = "firewood-macros", version = "0.6.0" }
firewood-storage = { path = "storage", version = "0.8.0" }
firewood-ffi = { path = "ffi", version = "0.8.0" }
firewood-metrics = { path = "metrics", version = "0.7.0" }
firewood-replay = { path = "replay", version = "0.7.0" }
# no longer bumping with workspace
firewood-triehash = { path = "triehash", version = "0.0.16" }
# common dependencies
aquamarine = "0.6.0"
bytemuck = { version = "1.25.0", features = ["const_zeroed"] }
bytemuck_derive = "1.10.2"
clap = { version = "4.6.1", features = ["derive"] }
env_logger = "0.11.11"
fastrace = "0.7.18"
hex = "0.4.3"
integer-encoding = "4.1.0"
log = "0.4.33"
# NOTE: metrics, metrics-util, and metrics-exporter-prometheus must stay
# compatible with the `[patch.crates-io]` fork's versions (below). If a
# requirement here can no longer be satisfied by the fork, Cargo drops the patch
# (look for a "Patch ... was not used" warning) and resolves against the upstream
# crates.io builds instead — which lack the custom `render` API used by the FFI.
metrics = "0.24.3"
metrics-util = "0.20.1"
metrics-exporter-prometheus = { version = "0.18.1", default-features = false }
nonzero_ext = "0.3.0"
parking_lot = "0.12.5"
rand_distr = "0.6.0"
sha2 = "0.11.0"
sha3 = "0.12.0"
smallvec = { version = "1.15.2", features = ["write", "union", "const_new"] }
test-case = "3.3.1"
thiserror = "2.0.18"
# common dev dependencies
criterion = "0.8.2"
ethereum-types = "0.16.0"
hex-literal = "1.1.0"
pprof = "0.15.0"
insta = "1.48.0"
rand = "0.10.2"
tempfile = "3.27.0"