forked from foundry-rs/foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
73 lines (65 loc) · 1.72 KB
/
Cargo.toml
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
[workspace]
members = [
"anvil",
"anvil/core",
"anvil/rpc",
"anvil/server",
"cast",
"binder",
"cli",
"cli/test-utils",
"common",
"config",
"doc",
"evm",
"fmt",
"forge",
"ui",
"utils",
"chisel",
"macros",
"macros/impl",
]
[profile.dev]
# Disabling debug info speeds up builds a bunch,
# and we don't rely on it for debugging that much
debug = 0
# These speed up local tests
[profile.dev.package.ethers-solc]
opt-level = 3
[profile.dev.package.revm]
opt-level = 3
# These speed up all forge script related integration tests
[profile.test.package.axum]
opt-level = 3
# Local "release" mode, more optimized than dev but much faster to compile than release
[profile.local]
inherits = "dev"
opt-level = 3
# Set this to 1 or 2 to get more useful backtraces
debug = 0
panic = 'unwind'
# better recompile times
incremental = true
codegen-units = 16
[profile.release]
# Optimize for binary size, but keep loop vectorization
opt-level = "s"
# Performance optimizations
lto = "fat"
debug = 0
strip = true
panic = "abort"
codegen-units = 1
# # Patch ethers-rs with a local checkout then run `cargo update -p ethers`
# [patch."https://github.com/gakonst/ethers-rs"]
# ethers = { path = "../ethers-rs" }
# ethers-addressbook = { path = "../ethers-rs/ethers-addressbook" }
# ethers-core = { path = "../ethers-rs/ethers-core" }
# ethers-contract = { path = "../ethers-rs/ethers-contract" }
# ethers-providers = { path = "../ethers-rs/ethers-providers" }
# ethers-signers = { path = "../ethers-rs/ethers-signers" }
# ethers-etherscan = { path = "../ethers-rs/ethers-etherscan" }
# ethers-solc = { path = "../ethers-rs/ethers-solc" }
# [patch.crates-io]
# revm = { path = "../revm/crates/revm" }