Skip to content

Commit e4611f9

Browse files
authored
chore: update dev profile (flashbots#538)
## πŸ“ Summary Update `dev` profile to speed up compilation. ## βœ… I have completed the following steps: * [x] Run `make lint` * [x] Run `make test` * [ ] Added tests (if applicable)
1 parent 63193b7 commit e4611f9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

β€ŽCargo.toml

+15
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ members = [
2121
default-members = ["crates/rbuilder", "crates/reth-rbuilder", "crates/test-relay"]
2222
resolver = "2"
2323

24+
# Speed up compilation time for dev builds by reducing emitted debug info.
25+
# NOTE: Debuggers may provide less useful information with this setting.
26+
# Uncomment this section if you're using a debugger.
27+
[profile.dev]
28+
# https://davidlattimore.github.io/posts/2024/02/04/speeding-up-the-rust-edit-build-run-cycle.html
29+
debug = "line-tables-only"
30+
split-debuginfo = "unpacked"
31+
32+
# Speed up tests.
33+
[profile.dev.package]
34+
proptest.opt-level = 3
35+
rand_chacha.opt-level = 3
36+
rand_xorshift.opt-level = 3
37+
unarray.opt-level = 3
38+
2439
# Like release, but with full debug symbols. Useful for e.g. `perf`.
2540
[profile.debug-fast]
2641
inherits = "release"

0 commit comments

Comments
Β (0)