-
Notifications
You must be signed in to change notification settings - Fork 88
Expand file tree
/
Copy pathCargo.toml
More file actions
226 lines (202 loc) · 7.75 KB
/
Cargo.toml
File metadata and controls
226 lines (202 loc) · 7.75 KB
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
[workspace]
resolver = "3"
members = [
"actors/*",
"state",
"runtime",
"test_vm",
"vm_api",
"integration_tests",
]
[workspace.package]
version = "17.0.0"
license = "MIT OR Apache-2.0"
edition = "2024"
repository = "https://github.com/filecoin-project/builtin-actors"
[package]
name = "fil_builtin_actors_bundle"
description = "Bundle of FVM-compatible Wasm bytecode for Filecoin builtin actors"
version.workspace = true
license.workspace = true
edition.workspace = true
repository.workspace = true
authors = ["Protocol Labs", "Filecoin Core Devs"]
keywords = ["filecoin", "web3", "wasm"]
exclude = ["examples", ".github"]
# We don't publish the bundle to crates.io anymore. Instead, we build in CI.
publish = false
[target.'cfg(target_arch = "wasm32")'.dependencies]
fil_actor_account = { workspace = true, features = ["fil-actor"] }
fil_actor_cron = { workspace = true, features = ["fil-actor"] }
fil_actor_datacap = { workspace = true, features = ["fil-actor"] }
fil_actor_ethaccount = { workspace = true, features = ["fil-actor"] }
fil_actor_eam = { workspace = true, features = ["fil-actor"] }
fil_actor_evm = { workspace = true, features = ["fil-actor"] }
fil_actor_init = { workspace = true, features = ["fil-actor"] }
fil_actor_market = { workspace = true, features = ["fil-actor"] }
fil_actor_miner = { workspace = true, features = ["fil-actor"] }
fil_actor_multisig = { workspace = true, features = ["fil-actor"] }
fil_actor_paych = { workspace = true, features = ["fil-actor"] }
fil_actor_placeholder = { workspace = true, features = ["fil-actor"] }
fil_actor_power = { workspace = true, features = ["fil-actor"] }
fil_actor_reward = { workspace = true, features = ["fil-actor"] }
fil_actor_system = { workspace = true, features = ["fil-actor"] }
fil_actor_verifreg = { workspace = true, features = ["fil-actor"] }
[build-dependencies]
fil_actor_bundler = "8.0.0"
cid = { workspace = true }
fil_actors_runtime = { workspace = true }
num-traits = { workspace = true }
[dependencies]
clap = { version = "4.5.36", features = [
"derive",
"std",
"help",
"usage",
"error-context",
], default-features = false }
[features]
default = [] ## translates to mainnet
mainnet = []
caterpillarnet = []
butterflynet = []
calibrationnet = []
devnet = []
testing = []
testing-fake-proofs = []
[workspace.dependencies]
# Common
serde = { version = "1.0", features = ["derive"] }
anyhow = "1.0.98"
bitflags = "2.9.0"
num = { version = "0.4", features = ["serde"] }
num-derive = "0.4.2"
num-traits = "0.2.19"
lazy_static = "1.5.0"
log = { version = "0.4.27", features = ["std"] }
byteorder = "1.5.0"
itertools = "0.14.0"
indexmap = { version = "2.9.0" }
derive_builder = "0.20.2"
once_cell = "1.21.3"
rand = { version = "0.8.5", default-features = false }
hex = "0.4.3"
hex-literal = "1.0.0"
serde_json = "1.0"
regex = "1"
test-case = "3.3.1"
bimap = "0.6.3"
castaway = "0.2.3"
thiserror = "2.0.12"
pretty_env_logger = "0.5.0"
serde_repr = "0.1.20"
unsigned-varint = "0.8.0"
rand_chacha = "0.3.1"
# Crypto
k256 = { version = "0.13.4", default-features = false }
blake2b_simd = "1.0"
sha2 = "0.10"
# EVM
alloy-core = { version = "1.0.0", default-features = false, features = ["sol-types"] }
uint = { version = "0.10.0", default-features = false }
etk-asm = "^0.3.0"
rlp = { version = "0.6.1", default-features = false }
substrate-bn = { version = "0.6.0", default-features = false }
# IPLD/Encoding
cid = { version = "0.11.1", default-features = false, features = [
"serde",
"std",
] }
multihash = { version = "0.19.3", default-features = false }
multihash-codetable = { version = "0.1.4", default-features = false }
multihash-derive = { version = "0.9.1", default-features = false }
ipld-core = { version = "0.4.2", features = ["serde"] }
integer-encoding = { version = "4.0.2", default-features = false }
# actor-utils
fvm_actor_utils = "14.0.0"
frc42_dispatch = "10.0.0"
frc46_token = "14.0.0"
# FVM
fvm_sdk = "~4.7"
fvm_shared = "~4.7"
fvm_ipld_encoding = "0.5.3"
fvm_ipld_blockstore = "0.3.1"
fvm_ipld_hamt = "0.10.4"
fvm_ipld_kamt = "0.4.5"
fvm_ipld_amt = "0.7.4"
fvm_ipld_bitfield = "0.7.2"
# workspace
fil_actor_account = { path = "actors/account" }
fil_actor_cron = { path = "actors/cron" }
fil_actor_datacap = { path = "actors/datacap" }
fil_actor_eam = { path = "actors/eam" }
fil_actor_ethaccount = { path = "actors/ethaccount" }
fil_actor_evm = { path = "actors/evm" }
fil_actor_init = { path = "actors/init" }
fil_actor_market = { path = "actors/market" }
fil_actor_miner = { path = "actors/miner" }
fil_actor_multisig = { path = "actors/multisig" }
fil_actor_paych = { path = "actors/paych" }
fil_actor_placeholder = { path = "actors/placeholder" }
fil_actor_power = { path = "actors/power" }
fil_actor_reward = { path = "actors/reward" }
fil_actor_system = { path = "actors/system" }
fil_actor_verifreg = { path = "actors/verifreg" }
fil_actors_evm_shared = { path = "actors/evm/shared" }
fil_actors_runtime = { path = "runtime" }
fil_builtin_actors_state = { path = "state" }
fil_actors_integration_tests = { version = "1.0.0", path = "integration_tests" }
vm_api = { version = "1.0.0", path = "vm_api" }
test_vm = { path = "test_vm" }
#[patch.crates-io]
# Use local ref-fvm when developing across repos (eip7702 branch).
#fvm_shared = { path = "../ref-fvm/shared" }
#fvm_sdk = { path = "../ref-fvm/sdk" }
#fvm_ipld_hamt = { path = "../ref-fvm/ipld/hamt" }
#fvm_ipld_amt = { path = "../ref-fvm/ipld/amt" }
#fvm_ipld_bitfield = { path = "../ref-fvm/ipld/bitfield"}
#fvm_ipld_encoding = { path = "../ref-fvm/ipld/encoding"}
#fvm_ipld_blockstore = { path = "../ref-fvm/ipld/blockstore"}
#fvm_actor_utils = { git = "https://github.com/filecoin-project/actors-utils", branch = "main" }
#frc42_dispatch = { git = "https://github.com/filecoin-project/actors-utils", branch = "main" }
#frc46_token = { git = "https://github.com/filecoin-project/actors-utils", branch = "main" }
## NOTE: Use git-based patches for CI so path overrides aren't required.
## These override crates.io versions with the EIP-7702-capable ref-fvm commit.
## For local cross-repo development, prefer uncommenting the path-based section above
## in a local working copy (do not commit path overrides).
[patch.crates-io]
fvm_shared = { git = "https://github.com/filecoin-project/ref-fvm.git", rev = "0d53fc71f5924cec2d5af9d8cca55e51020694d2" }
fvm_sdk = { git = "https://github.com/filecoin-project/ref-fvm.git", rev = "0d53fc71f5924cec2d5af9d8cca55e51020694d2" }
fvm_ipld_car = { git = "https://github.com/filecoin-project/ref-fvm.git", rev = "0d53fc71f5924cec2d5af9d8cca55e51020694d2" }
fvm_ipld_hamt = { git = "https://github.com/filecoin-project/ref-fvm.git", rev = "0d53fc71f5924cec2d5af9d8cca55e51020694d2" }
fvm_ipld_amt = { git = "https://github.com/filecoin-project/ref-fvm.git", rev = "0d53fc71f5924cec2d5af9d8cca55e51020694d2" }
fvm_ipld_bitfield = { git = "https://github.com/filecoin-project/ref-fvm.git", rev = "0d53fc71f5924cec2d5af9d8cca55e51020694d2" }
fvm_ipld_encoding = { git = "https://github.com/filecoin-project/ref-fvm.git", rev = "0d53fc71f5924cec2d5af9d8cca55e51020694d2" }
fvm_ipld_blockstore = { git = "https://github.com/filecoin-project/ref-fvm.git", rev = "0d53fc71f5924cec2d5af9d8cca55e51020694d2" }
[profile.wasm]
inherits = "release"
# This needs to be unwind, not abort, so that we can handle panics within our panic hook.
panic = "unwind"
overflow-checks = true
lto = "thin"
opt-level = 3
strip = true
codegen-units = 1
incremental = false
## So tests don't take ages.
[profile.dev.package."fvm_ipld_bitfield"]
opt-level = 2
[profile.dev.package."num-bigint"]
opt-level = 2
[profile.dev.package."sha2"]
opt-level = 2
[profile.dev.package."blake2b_simd"]
opt-level = 2
[profile.dev.package."test_vm"]
opt-level = 2
[profile.coverage]
inherits = "test"
incremental = false
codegen-units = 1
opt-level = 0
overflow-checks = false