forked from foundry-rs/foundry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
157 lines (138 loc) · 4.73 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
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
[workspace]
members = ["crates/*"]
resolver = "2"
[workspace.package]
version = "0.2.0"
edition = "2021"
rust-version = "1.71"
authors = ["Foundry Contributors"]
license = "MIT OR Apache-2.0"
homepage = "https://github.com/foundry-rs/foundry"
repository = "https://github.com/foundry-rs/foundry"
exclude = ["benches/", "tests/", "test-data/", "testdata/"]
[profile.dev]
# Disabling debug info speeds up builds a bunch,
# and we don't rely on it for debugging that much
debug = 0
# Speed up tests and dev build
[profile.dev.package]
# solc
ethers-solc.opt-level = 3
solang-parser.opt-level = 3
serde_json.opt-level = 3
# evm
revm.opt-level = 3
revm-primitives.opt-level = 3
revm-interpreter.opt-level = 3
revm-precompile.opt-level = 3
tiny-keccak.opt-level = 3
sha2.opt-level = 3
sha3.opt-level = 3
keccak.opt-level = 3
ruint.opt-level = 3
hashbrown.opt-level = 3
# keystores
scrypt.opt-level = 3
# forking
axum.opt-level = 3
[profile.release]
opt-level = "s"
lto = "fat"
strip = true
panic = "abort"
codegen-units = 1
[profile.release.package]
# Optimize all non-workspace packages for speed
"*".opt-level = 3
# Package overrides
foundry-evm.opt-level = 3
foundry-abi.opt-level = 1
mdbook.opt-level = 1
protobuf.opt-level = 1
rusoto_core.opt-level = 1
rusoto_credential.opt-level = 1
rusoto_kms.opt-level = 1
toml_edit.opt-level = 1
trezor-client.opt-level = 1
# Given that the `"*"` above takes precedence over the defaults for build scripts and macros, we
# have to override all of them to reduce compile times
syn.opt-level = 0
prettyplease.opt-level = 0
lalrpop.opt-level = 0
ethers-contract-abigen.opt-level = 0
ethers-contract-derive.opt-level = 0
async-recursion.opt-level = 0
miette-derive.opt-level = 0
strum_macros.opt-level = 0
enumn.opt-level = 0
clap_derive.opt-level = 0
serde_derive.opt-level = 0
pear_codegen.opt-level = 0
num_enum_derive.opt-level = 0
scale-info-derive.opt-level = 0
parity-scale-codec-derive.opt-level = 0
time-macros.opt-level = 0
phf_macros.opt-level = 0
pin-project-internal.opt-level = 0
auto_impl.opt-level = 0
derive_more.opt-level = 0
rlp-derive.opt-level = 0
impl-trait-for-tuples.opt-level = 0
async-trait.opt-level = 0
tokio-macros.opt-level = 0
tracing-attributes.opt-level = 0
futures-macro.opt-level = 0
thiserror-impl.opt-level = 0
wasm-bindgen-macro-support.opt-level = 0
wasm-bindgen-backend.opt-level = 0
# Local "release" mode, more optimized than dev but much faster to compile than release
[profile.local]
inherits = "dev"
opt-level = 1
strip = true
panic = "abort"
codegen-units = 16
[workspace.dependencies]
anvil = { path = "crates/anvil" }
cast = { path = "crates/cast" }
chisel = { path = "crates/chisel" }
forge = { path = "crates/forge" }
forge-doc = { path = "crates/doc" }
forge-fmt = { path = "crates/fmt" }
foundry-abi = { path = "crates/abi" }
foundry-binder = { path = "crates/binder" }
foundry-cli = { path = "crates/cli" }
foundry-common = { path = "crates/common" }
foundry-config = { path = "crates/config" }
foundry-evm = { path = "crates/evm" }
foundry-macros = { path = "crates/macros" }
foundry-test-utils = { path = "crates/test-utils" }
foundry-utils = { path = "crates/utils" }
ui = { path = "crates/ui" }
ethers = { version = "2.0.8", default-features = false }
ethers-addressbook = { version = "2.0.8", default-features = false }
ethers-core = { version = "2.0.8", default-features = false }
ethers-contract = { version = "2.0.8", default-features = false }
ethers-contract-abigen = { version = "2.0.8", default-features = false }
ethers-providers = { version = "2.0.8", default-features = false }
ethers-signers = { version = "2.0.8", default-features = false }
ethers-middleware = { version = "2.0.8", default-features = false }
ethers-etherscan = { version = "2.0.8", default-features = false }
ethers-solc = { version = "2.0.8", default-features = false }
chrono = { version = "0.4", default-features = false, features = ["clock", "std"] }
hex = { package = "const-hex", version = "1.6", features = ["hex"] }
itertools = "0.11"
solang-parser = "0.3.2"
#[patch."https://github.com/gakonst/ethers-rs"]
#ethers = { path = "../ethers-rs/ethers" }
#ethers-addressbook = { path = "../ethers-rs/ethers-addressbook" }
#ethers-contract = { path = "../ethers-rs/ethers-contract" }
#ethers-contract-abigen = { path = "../ethers-rs/ethers-contract/ethers-contract-abigen" }
#ethers-core = { path = "../ethers-rs/ethers-core" }
#ethers-etherscan = { path = "../ethers-rs/ethers-etherscan" }
#ethers-middleware = { path = "../ethers-rs/ethers-middleware" }
#ethers-providers = { path = "../ethers-rs/ethers-providers" }
#ethers-signers = { path = "../ethers-rs/ethers-signers" }
#ethers-solc = { path = "../ethers-rs/ethers-solc" }
[patch.crates-io]
revm = { git = "https://github.com/bluealloy/revm/", rev = "6b55b9c0ab264c000e087c2f54f2d8dc24b869aa" }