Skip to content

Commit 5166fac

Browse files
committed
chore: tweak profiles, rename debug-fast to profiling, remove local
1 parent 12db5ac commit 5166fac

File tree

8 files changed

+106
-121
lines changed

8 files changed

+106
-121
lines changed

Cargo.lock

+76-77
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+22-31
Original file line numberDiff line numberDiff line change
@@ -95,31 +95,20 @@ axum.opt-level = 3
9595
# keystores
9696
scrypt.opt-level = 3
9797

98-
# Local "release" mode, more optimized than dev but much faster to compile than release.
99-
[profile.local]
100-
inherits = "dev"
101-
opt-level = 1
102-
debug-assertions = false
103-
overflow-checks = false
104-
strip = "debuginfo"
105-
panic = "abort"
106-
codegen-units = 16
107-
108-
# Like release, but with full debug symbols and with stack unwinds. Useful for e.g. `perf`.
109-
[profile.debug-fast]
110-
inherits = "local"
111-
debug = true
112-
strip = "none"
113-
panic = "unwind"
114-
115-
# Optimized release profile.
11698
[profile.release]
11799
opt-level = 3
100+
lto = "thin"
118101
debug = "line-tables-only"
119-
lto = "fat"
120-
strip = "debuginfo"
102+
strip = true
121103
panic = "abort"
122-
codegen-units = 1
104+
codegen-units = 16
105+
106+
# Use the `--profile profiling` flag to show symbols in release mode.
107+
# e.g. `cargo build --profile profiling`
108+
[profile.profiling]
109+
inherits = "release"
110+
debug = 1
111+
strip = false
123112

124113
# Override packages which aren't perf-sensitive for faster compilation speed.
125114
[profile.release.package]
@@ -158,6 +147,7 @@ foundry-linking = { path = "crates/linking" }
158147
# solc & compilation utilities
159148
foundry-block-explorers = { version = "0.4.1", default-features = false }
160149
foundry-compilers = { version = "0.8.0", default-features = false }
150+
solang-parser = "=0.3.3"
161151

162152
## revm
163153
# no default features to avoid c-kzg
@@ -182,26 +172,27 @@ alloy-rpc-client = { version = "0.1.2", default-features = false }
182172
alloy-rpc-types = { version = "0.1.2", default-features = false }
183173
alloy-serde = { version = "0.1.2", default-features = false }
184174
alloy-signer = { version = "0.1.2", default-features = false }
185-
alloy-signer-local = { version = "0.1.2", default-features = false }
186175
alloy-signer-aws = { version = "0.1.2", default-features = false }
187176
alloy-signer-gcp = { version = "0.1.2", default-features = false }
188177
alloy-signer-ledger = { version = "0.1.2", default-features = false }
178+
alloy-signer-local = { version = "0.1.2", default-features = false }
189179
alloy-signer-trezor = { version = "0.1.2", default-features = false }
190180
alloy-transport = { version = "0.1.2", default-features = false }
191181
alloy-transport-http = { version = "0.1.2", default-features = false }
192182
alloy-transport-ipc = { version = "0.1.2", default-features = false }
193183
alloy-transport-ws = { version = "0.1.2", default-features = false }
194-
alloy-primitives = { version = "0.7.1", features = ["getrandom", "rand"] }
195-
alloy-dyn-abi = "0.7.1"
196-
alloy-json-abi = "0.7.1"
197-
alloy-sol-types = "0.7.1"
198-
alloy-sol-macro-input = "0.7.3"
184+
185+
alloy-dyn-abi = "0.7.3"
186+
alloy-json-abi = "0.7.3"
187+
alloy-primitives = { version = "0.7.3", features = ["getrandom", "rand"] }
199188
alloy-sol-macro-expander = "0.7.3"
200-
syn-solidity = "0.7.1"
189+
alloy-sol-macro-input = "0.7.3"
190+
alloy-sol-types = "0.7.3"
191+
syn-solidity = "0.7.3"
192+
201193
alloy-chains = "0.1"
202-
alloy-trie = "0.4.1"
203194
alloy-rlp = "0.3.3"
204-
solang-parser = "=0.3.3"
195+
alloy-trie = "0.4.1"
205196

206197
## misc
207198
async-trait = "0.1"
@@ -232,7 +223,7 @@ k256 = "0.13"
232223
once_cell = "1"
233224
parking_lot = "0.12"
234225
rand = "0.8"
235-
rustc-hash = "1.1"
226+
rustc-hash = "2.0"
236227
semver = "1"
237228
serde = { version = "1.0", features = ["derive"] }
238229
serde_json = { version = "1.0", features = ["arbitrary_precision"] }

crates/anvil/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ tower.workspace = true
7575

7676
# tracing
7777
tracing.workspace = true
78-
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] }
78+
tracing-subscriber = { workspace = true, features = ["env-filter"] }
7979

8080
# async
8181
tokio = { workspace = true, features = ["time"] }

crates/anvil/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@ A local Ethereum node, akin to Ganache, designed for development with [**Forge**
2727
### Installing from source
2828

2929
```sh
30-
git clone https://github.com/foundry-rs/foundry
31-
cd foundry
32-
cargo install --path ./crates/anvil --profile local --locked --force
30+
cargo install --git https://github.com/foundry-rs/foundry --locked --force
3331
```
3432

3533
## Getting started

crates/cli/Cargo.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,18 @@ clap = { version = "4", features = ["derive", "env", "unicode", "wrap_help"] }
3333
color-eyre.workspace = true
3434
dotenvy = "0.15"
3535
eyre.workspace = true
36+
futures.workspace = true
37+
hex.workspace = true
3638
indicatif = "0.17"
3739
once_cell.workspace = true
3840
regex = { version = "1", default-features = false }
3941
serde.workspace = true
40-
strsim = "0.10"
42+
strsim = "0.11"
4143
strum = { workspace = true, features = ["derive"] }
4244
tokio = { workspace = true, features = ["macros"] }
43-
tracing-error = "0.2"
44-
tracing-subscriber = { workspace = true, features = ["registry", "env-filter", "fmt"] }
45+
tracing-subscriber = { workspace = true, features = ["registry", "env-filter"] }
4546
tracing.workspace = true
4647
yansi.workspace = true
47-
hex.workspace = true
48-
futures.workspace = true
4948

5049
[dev-dependencies]
5150
tempfile.workspace = true

crates/cli/src/utils/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use std::{
1212
process::{Command, Output, Stdio},
1313
time::{Duration, SystemTime, UNIX_EPOCH},
1414
};
15-
use tracing_error::ErrorLayer;
1615
use tracing_subscriber::prelude::*;
1716

1817
mod cmd;
@@ -70,7 +69,6 @@ impl<T: AsRef<Path>> FoundryPathExt for T {
7069
pub fn subscriber() {
7170
tracing_subscriber::Registry::default()
7271
.with(tracing_subscriber::EnvFilter::from_default_env())
73-
.with(ErrorLayer::default())
7472
.with(tracing_subscriber::fmt::layer())
7573
.init()
7674
}

crates/forge/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ svm = { package = "svm-rs", version = "0.5", default-features = false, features
123123
"rustls",
124124
] }
125125
tempfile.workspace = true
126-
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] }
126+
tracing-subscriber = { workspace = true, features = ["env-filter"] }
127127

128128
alloy-signer-local.workspace = true
129129

crates/test-utils/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ similar-asserts.workspace = true
3030
regex = "1"
3131
serde_json.workspace = true
3232
tracing.workspace = true
33-
tracing-subscriber = { workspace = true, features = ["env-filter", "fmt"] }
33+
tracing-subscriber = { workspace = true, features = ["env-filter"] }
3434
walkdir.workspace = true
3535
rand.workspace = true
3636

0 commit comments

Comments
 (0)