chore: update profiles (#14029)

This commit is contained in:
DaniPopes
2025-01-28 11:26:39 +01:00
committed by GitHub
parent d709c8a0d2
commit af30448f4c

View File

@ -253,6 +253,14 @@ significant_drop_in_scrutinee = "allow"
significant_drop_tightening = "allow"
too_long_first_doc_paragraph = "allow"
# Speed up compilation time for dev builds by reducing emitted debug info.
# NOTE: Debuggers may provide less useful information with this setting.
# Uncomment this section if you're using a debugger.
[profile.dev]
# https://davidlattimore.github.io/posts/2024/02/04/speeding-up-the-rust-edit-build-run-cycle.html
debug = "line-tables-only"
split-debuginfo = "unpacked"
# Speed up tests.
[profile.dev.package]
proptest.opt-level = 3
@ -263,32 +271,32 @@ unarray.opt-level = 3
# Meant for testing - all optimizations, but with debug assertions and overflow checks.
[profile.hivetests]
inherits = "test"
lto = "thin"
opt-level = 3
lto = "thin"
[profile.release]
codegen-units = 16
debug = "line-tables-only"
lto = "thin"
opt-level = 3
lto = "thin"
debug = "none"
strip = "symbols"
panic = "unwind"
strip = true
codegen-units = 16
# Use the `--profile profiling` flag to show symbols in release mode.
# e.g. `cargo build --profile profiling`
[profile.profiling]
debug = 2
inherits = "release"
strip = false
debug = "full"
strip = "none"
# Make sure debug symbols are in the bench profile
# Include debug info in benchmarks too.
[profile.bench]
inherits = "profiling"
[profile.maxperf]
codegen-units = 1
inherits = "release"
lto = "fat"
codegen-units = 1
[workspace.dependencies]
# reth
@ -510,7 +518,7 @@ rayon = "1.7"
rustc-hash = { version = "2.0", default-features = false }
schnellru = "0.2"
serde = { version = "1.0", default-features = false }
serde_json = { version = "1.0.94", default-features = false, features = ["alloc"] }
serde_json = { version = "1.0", default-features = false, features = ["alloc"] }
serde_with = { version = "3", default-features = false, features = ["macros"] }
sha2 = { version = "0.10", default-features = false }
shellexpand = "3.0.0"