Skip to content

Commit db73244

Browse files
committed
1 parent 7687790 commit db73244

8 files changed

Lines changed: 64 additions & 53 deletions

File tree

runtime/crab/Cargo.toml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ readme = "README.md"
77
version.workspace = true
88

99
[build-dependencies]
10-
substrate-wasm-builder = { workspace = true }
10+
# substrate optional
11+
substrate-wasm-builder = { workspace = true, optional = true }
1112

1213
[dependencies]
1314
# crates.io
@@ -31,13 +32,13 @@ parachain-info = { workspace = true }
3132
cumulus-pallet-session-benchmarking = { workspace = true, optional = true }
3233

3334
# darwinia
34-
darwinia-account-migration = { workspace = true }
35-
darwinia-common-runtime = { workspace = true }
36-
darwinia-deposit = { workspace = true }
37-
darwinia-ecdsa-authority = { workspace = true }
38-
darwinia-message-gadget = { workspace = true }
39-
darwinia-message-transact = { workspace = true }
40-
darwinia-precompile-assets = { workspace = true }
35+
darwinia-account-migration = { workspace = true }
36+
darwinia-common-runtime = { workspace = true }
37+
darwinia-deposit = { workspace = true }
38+
darwinia-ecdsa-authority = { workspace = true }
39+
darwinia-message-gadget = { workspace = true }
40+
darwinia-message-transact = { workspace = true }
41+
darwinia-precompile-assets = { workspace = true }
4142
darwinia-precompile-bls12-381 = { workspace = true }
4243
darwinia-precompile-deposit = { workspace = true }
4344
darwinia-precompile-staking = { workspace = true }
@@ -165,17 +166,17 @@ std = [
165166
"darwinia-message-transact/std",
166167
"darwinia-precompile-assets/std",
167168
"darwinia-precompile-bls12-381/std",
168-
"darwinia-precompile-staking/std",
169169
"darwinia-precompile-deposit/std",
170+
"darwinia-precompile-staking/std",
170171
"darwinia-precompile-state-storage/std",
171172
"darwinia-staking/std",
172173
"dc-primitives/std",
173174

174175
# darwinia-messages-substrate
175176
"bp-message-dispatch/std",
176177
"bp-messages/std",
177-
"bp-runtime/std",
178178
"bp-polkadot-core/std",
179+
"bp-runtime/std",
179180
"bridge-runtime-common/std",
180181
"pallet-bridge-dispatch/std",
181182
"pallet-bridge-grandpa/std",
@@ -188,12 +189,12 @@ std = [
188189
"fp-rpc/std",
189190
"fp-self-contained/std",
190191
"pallet-ethereum/std",
191-
"pallet-evm/std",
192192
"pallet-evm-precompile-blake2/std",
193193
"pallet-evm-precompile-bn128/std",
194194
"pallet-evm-precompile-dispatch/std",
195195
"pallet-evm-precompile-modexp/std",
196196
"pallet-evm-precompile-simple/std",
197+
"pallet-evm/std",
197198

198199
# moonbeam
199200
"moonbeam-evm-tracer/std",
@@ -206,24 +207,24 @@ std = [
206207
"pallet-xcm/std",
207208
"polkadot-parachain/std",
208209
"polkadot-runtime-common/std",
209-
"xcm/std",
210210
"xcm-builder/std",
211211
"xcm-executor/std",
212+
"xcm/std",
212213

213214
# substrate
214215
"frame-executive/std",
215216
"frame-support/std",
216-
"frame-system/std",
217217
"frame-system-rpc-runtime-api/std",
218+
"frame-system/std",
218219
"pallet-assets/std",
219220
"pallet-aura/std",
220221
"pallet-authorship/std",
221222
"pallet-balances/std",
222223
"pallet-collective/std",
223224
"pallet-democracy/std",
224225
"pallet-elections-phragmen/std",
225-
"pallet-membership/std",
226226
"pallet-identity/std",
227+
"pallet-membership/std",
227228
"pallet-preimage/std",
228229
"pallet-proxy/std",
229230
"pallet-scheduler/std",
@@ -250,11 +251,12 @@ std = [
250251
"frame-benchmarking?/std",
251252
"frame-system-benchmarking?/std",
252253
"frame-try-runtime?/std",
254+
"substrate-wasm-builder",
253255
]
254256

255257
evm-tracing = [
256258
# moonbeam
257-
"moonbeam-evm-tracer"
259+
"moonbeam-evm-tracer",
258260
]
259261

260262
fast-runtime = []
@@ -314,8 +316,8 @@ runtime-benchmarks = [
314316
"pallet-collective/runtime-benchmarks",
315317
"pallet-democracy/runtime-benchmarks",
316318
"pallet-elections-phragmen/runtime-benchmarks",
317-
"pallet-membership/runtime-benchmarks",
318319
"pallet-identity/runtime-benchmarks",
320+
"pallet-membership/runtime-benchmarks",
319321
"pallet-preimage/runtime-benchmarks",
320322
"pallet-proxy/runtime-benchmarks",
321323
"pallet-scheduler/runtime-benchmarks",
@@ -374,8 +376,8 @@ try-runtime = [
374376
"pallet-collective/try-runtime",
375377
"pallet-democracy/try-runtime",
376378
"pallet-elections-phragmen/try-runtime",
377-
"pallet-membership/try-runtime",
378379
"pallet-identity/try-runtime",
380+
"pallet-membership/try-runtime",
379381
"pallet-preimage/try-runtime",
380382
"pallet-proxy/try-runtime",
381383
"pallet-scheduler/try-runtime",

runtime/crab/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// along with Darwinia. If not, see <https://www.gnu.org/licenses/>.
1818

1919
// crates.io
20+
#[cfg(feature = "std")]
2021
use substrate_wasm_builder::WasmBuilder;
2122

2223
#[cfg(feature = "std")]

runtime/darwinia/Cargo.toml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ readme = "README.md"
77
version.workspace = true
88

99
[build-dependencies]
10-
substrate-wasm-builder = { workspace = true }
10+
# substrate optional
11+
substrate-wasm-builder = { workspace = true, optional = true }
1112

1213
[dependencies]
1314
# crates.io
@@ -31,13 +32,13 @@ parachain-info = { workspace = true }
3132
cumulus-pallet-session-benchmarking = { workspace = true, optional = true }
3233

3334
# darwinia
34-
darwinia-account-migration = { workspace = true }
35-
darwinia-common-runtime = { workspace = true }
36-
darwinia-deposit = { workspace = true }
37-
darwinia-ecdsa-authority = { workspace = true }
38-
darwinia-message-gadget = { workspace = true }
39-
darwinia-message-transact = { workspace = true }
40-
darwinia-precompile-assets = { workspace = true }
35+
darwinia-account-migration = { workspace = true }
36+
darwinia-common-runtime = { workspace = true }
37+
darwinia-deposit = { workspace = true }
38+
darwinia-ecdsa-authority = { workspace = true }
39+
darwinia-message-gadget = { workspace = true }
40+
darwinia-message-transact = { workspace = true }
41+
darwinia-precompile-assets = { workspace = true }
4142
darwinia-precompile-bls12-381 = { workspace = true }
4243
darwinia-precompile-deposit = { workspace = true }
4344
darwinia-precompile-staking = { workspace = true }
@@ -166,17 +167,17 @@ std = [
166167
"darwinia-message-transact/std",
167168
"darwinia-precompile-assets/std",
168169
"darwinia-precompile-bls12-381/std",
169-
"darwinia-precompile-staking/std",
170170
"darwinia-precompile-deposit/std",
171+
"darwinia-precompile-staking/std",
171172
"darwinia-precompile-state-storage/std",
172173
"darwinia-staking/std",
173174
"dc-primitives/std",
174175

175176
# darwinia-messages-substrate
176177
"bp-message-dispatch/std",
177178
"bp-messages/std",
178-
"bp-runtime/std",
179179
"bp-polkadot-core/std",
180+
"bp-runtime/std",
180181
"bridge-runtime-common/std",
181182
"pallet-bridge-dispatch/std",
182183
"pallet-bridge-grandpa/std",
@@ -189,12 +190,12 @@ std = [
189190
"fp-rpc/std",
190191
"fp-self-contained/std",
191192
"pallet-ethereum/std",
192-
"pallet-evm/std",
193193
"pallet-evm-precompile-blake2/std",
194194
"pallet-evm-precompile-bn128/std",
195195
"pallet-evm-precompile-dispatch/std",
196196
"pallet-evm-precompile-modexp/std",
197197
"pallet-evm-precompile-simple/std",
198+
"pallet-evm/std",
198199

199200
# moonbeam
200201
"moonbeam-evm-tracer/std",
@@ -208,24 +209,24 @@ std = [
208209
"pallet-xcm/std",
209210
"polkadot-parachain/std",
210211
"polkadot-runtime-common/std",
211-
"xcm/std",
212212
"xcm-builder/std",
213213
"xcm-executor/std",
214+
"xcm/std",
214215

215216
# substrate
216217
"frame-executive/std",
217218
"frame-support/std",
218-
"frame-system/std",
219219
"frame-system-rpc-runtime-api/std",
220+
"frame-system/std",
220221
"pallet-assets/std",
221222
"pallet-aura/std",
222223
"pallet-authorship/std",
223224
"pallet-balances/std",
224225
"pallet-collective/std",
225226
"pallet-democracy/std",
226227
"pallet-elections-phragmen/std",
227-
"pallet-membership/std",
228228
"pallet-identity/std",
229+
"pallet-membership/std",
229230
"pallet-preimage/std",
230231
"pallet-proxy/std",
231232
"pallet-scheduler/std",
@@ -252,11 +253,12 @@ std = [
252253
"frame-benchmarking?/std",
253254
"frame-system-benchmarking?/std",
254255
"frame-try-runtime?/std",
256+
"substrate-wasm-builder",
255257
]
256258

257259
evm-tracing = [
258260
# moonbeam
259-
"moonbeam-evm-tracer"
261+
"moonbeam-evm-tracer",
260262
]
261263

262264
fast-runtime = []
@@ -317,8 +319,8 @@ runtime-benchmarks = [
317319
"pallet-collective/runtime-benchmarks",
318320
"pallet-democracy/runtime-benchmarks",
319321
"pallet-elections-phragmen/runtime-benchmarks",
320-
"pallet-membership/runtime-benchmarks",
321322
"pallet-identity/runtime-benchmarks",
323+
"pallet-membership/runtime-benchmarks",
322324
"pallet-preimage/runtime-benchmarks",
323325
"pallet-proxy/runtime-benchmarks",
324326
"pallet-scheduler/runtime-benchmarks",
@@ -380,8 +382,8 @@ try-runtime = [
380382
"pallet-collective/try-runtime",
381383
"pallet-democracy/try-runtime",
382384
"pallet-elections-phragmen/try-runtime",
383-
"pallet-membership/try-runtime",
384385
"pallet-identity/try-runtime",
386+
"pallet-membership/try-runtime",
385387
"pallet-preimage/try-runtime",
386388
"pallet-proxy/try-runtime",
387389
"pallet-scheduler/try-runtime",

runtime/darwinia/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// along with Darwinia. If not, see <https://www.gnu.org/licenses/>.
1818

1919
// crates.io
20+
#[cfg(feature = "std")]
2021
use substrate_wasm_builder::WasmBuilder;
2122

2223
#[cfg(feature = "std")]

runtime/pangolin/Cargo.toml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ readme = "README.md"
77
version.workspace = true
88

99
[build-dependencies]
10-
substrate-wasm-builder = { workspace = true }
10+
# substrate optional
11+
substrate-wasm-builder = { workspace = true, optional = true }
1112

1213
[dependencies]
1314
# crates.io
@@ -176,8 +177,8 @@ std = [
176177
# darwinia-messages-substrate
177178
"bp-message-dispatch/std",
178179
"bp-messages/std",
179-
"bp-runtime/std",
180180
"bp-polkadot-core/std",
181+
"bp-runtime/std",
181182
"bridge-runtime-common/std",
182183
"pallet-bridge-dispatch/std",
183184
"pallet-bridge-grandpa/std",
@@ -190,12 +191,12 @@ std = [
190191
"fp-rpc/std",
191192
"fp-self-contained/std",
192193
"pallet-ethereum/std",
193-
"pallet-evm/std",
194194
"pallet-evm-precompile-blake2/std",
195195
"pallet-evm-precompile-bn128/std",
196196
"pallet-evm-precompile-dispatch/std",
197197
"pallet-evm-precompile-modexp/std",
198198
"pallet-evm-precompile-simple/std",
199+
"pallet-evm/std",
199200

200201
# moonbeam
201202
"moonbeam-evm-tracer/std",
@@ -209,24 +210,24 @@ std = [
209210
"pallet-xcm/std",
210211
"polkadot-parachain/std",
211212
"polkadot-runtime-common/std",
212-
"xcm/std",
213213
"xcm-builder/std",
214214
"xcm-executor/std",
215+
"xcm/std",
215216

216217
# substrate
217218
"frame-executive/std",
218219
"frame-support/std",
219-
"frame-system/std",
220220
"frame-system-rpc-runtime-api/std",
221+
"frame-system/std",
221222
"pallet-assets/std",
222223
"pallet-aura/std",
223224
"pallet-authorship/std",
224225
"pallet-balances/std",
225226
"pallet-collective/std",
226227
"pallet-democracy/std",
227228
"pallet-elections-phragmen/std",
228-
"pallet-membership/std",
229229
"pallet-identity/std",
230+
"pallet-membership/std",
230231
"pallet-preimage/std",
231232
"pallet-proxy/std",
232233
"pallet-scheduler/std",
@@ -254,13 +255,14 @@ std = [
254255
"frame-benchmarking?/std",
255256
"frame-system-benchmarking?/std",
256257
"frame-try-runtime?/std",
258+
"substrate-wasm-builder",
257259
]
258260

259261
fast-runtime = []
260262

261263
evm-tracing = [
262264
# moonbeam
263-
"moonbeam-evm-tracer"
265+
"moonbeam-evm-tracer",
264266
]
265267

266268
# A feature that should be enabled when the runtime should be build for on-chain
@@ -319,8 +321,8 @@ runtime-benchmarks = [
319321
"pallet-collective/runtime-benchmarks",
320322
"pallet-democracy/runtime-benchmarks",
321323
"pallet-elections-phragmen/runtime-benchmarks",
322-
"pallet-membership/runtime-benchmarks",
323324
"pallet-identity/runtime-benchmarks",
325+
"pallet-membership/runtime-benchmarks",
324326
"pallet-preimage/runtime-benchmarks",
325327
"pallet-proxy/runtime-benchmarks",
326328
"pallet-scheduler/runtime-benchmarks",
@@ -382,8 +384,8 @@ try-runtime = [
382384
"pallet-collective/try-runtime",
383385
"pallet-democracy/try-runtime",
384386
"pallet-elections-phragmen/try-runtime",
385-
"pallet-membership/try-runtime",
386387
"pallet-identity/try-runtime",
388+
"pallet-membership/try-runtime",
387389
"pallet-preimage/try-runtime",
388390
"pallet-proxy/try-runtime",
389391
"pallet-scheduler/try-runtime",

runtime/pangolin/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// along with Darwinia. If not, see <https://www.gnu.org/licenses/>.
1818

1919
// crates.io
20+
#[cfg(feature = "std")]
2021
use substrate_wasm_builder::WasmBuilder;
2122

2223
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)