referrerpolicy=no-referrer-when-downgrade

polkadot_sdk/
lib.rs

1// Copyright (C) Parity Technologies (UK) Ltd.
2// SPDX-License-Identifier: Apache-2.0
3
4#![cfg_attr(not(feature = "std"), no_std)]
5
6//! Polkadot SDK umbrella crate re-exporting all other published crates.
7//!
8//! This helps to set a single version number for all your dependencies. Docs are in the
9//! `polkadot-sdk-docs` crate.
10
11// This file is auto-generated and checked by the CI.  You can edit it manually, but it must be
12// exactly the way that the CI expects it.
13
14/// Test utils for Asset Hub runtimes.
15#[cfg(feature = "asset-test-utils")]
16pub use asset_test_utils;
17
18/// Assets common utilities.
19#[cfg(feature = "assets-common")]
20pub use assets_common;
21
22/// A no-std/Substrate compatible library to construct binary merkle tree.
23#[cfg(feature = "binary-merkle-tree")]
24pub use binary_merkle_tree;
25
26/// A common interface for describing what a bridge pallet should be able to do.
27#[cfg(feature = "bp-header-chain")]
28pub use bp_header_chain;
29
30/// Primitives of messages module.
31#[cfg(feature = "bp-messages")]
32pub use bp_messages;
33
34/// Primitives of parachains module.
35#[cfg(feature = "bp-parachains")]
36pub use bp_parachains;
37
38/// Primitives of Polkadot-like runtime.
39#[cfg(feature = "bp-polkadot-core")]
40pub use bp_polkadot_core;
41
42/// Primitives of relayers module.
43#[cfg(feature = "bp-relayers")]
44pub use bp_relayers;
45
46/// Primitives that may be used at (bridges) runtime level.
47#[cfg(feature = "bp-runtime")]
48pub use bp_runtime;
49
50/// Utilities for testing substrate-based runtime bridge code.
51#[cfg(feature = "bp-test-utils")]
52pub use bp_test_utils;
53
54/// Primitives of the xcm-bridge-hub pallet.
55#[cfg(feature = "bp-xcm-bridge-hub")]
56pub use bp_xcm_bridge_hub;
57
58/// Primitives of the xcm-bridge-hub fee pallet.
59#[cfg(feature = "bp-xcm-bridge-hub-router")]
60pub use bp_xcm_bridge_hub_router;
61
62/// Bridge hub common utilities.
63#[cfg(feature = "bridge-hub-common")]
64pub use bridge_hub_common;
65
66/// Utils for BridgeHub testing.
67#[cfg(feature = "bridge-hub-test-utils")]
68pub use bridge_hub_test_utils;
69
70/// Common types and functions that may be used by substrate-based runtimes of all bridged
71/// chains.
72#[cfg(feature = "bridge-runtime-common")]
73pub use bridge_runtime_common;
74
75/// Parachain bootnodes registration and discovery.
76#[cfg(feature = "cumulus-client-bootnodes")]
77pub use cumulus_client_bootnodes;
78
79/// Parachain node CLI utilities.
80#[cfg(feature = "cumulus-client-cli")]
81pub use cumulus_client_cli;
82
83/// Common node-side functionality and glue code to collate parachain blocks.
84#[cfg(feature = "cumulus-client-collator")]
85pub use cumulus_client_collator;
86
87/// AURA consensus algorithm for parachains.
88#[cfg(feature = "cumulus-client-consensus-aura")]
89pub use cumulus_client_consensus_aura;
90
91/// Cumulus specific common consensus implementations.
92#[cfg(feature = "cumulus-client-consensus-common")]
93pub use cumulus_client_consensus_common;
94
95/// The relay-chain provided consensus algorithm.
96#[cfg(feature = "cumulus-client-consensus-relay-chain")]
97pub use cumulus_client_consensus_relay_chain;
98
99/// Cumulus-specific networking protocol.
100#[cfg(feature = "cumulus-client-network")]
101pub use cumulus_client_network;
102
103/// Inherent that needs to be present in every parachain block. Contains messages and a relay
104/// chain storage-proof.
105#[cfg(feature = "cumulus-client-parachain-inherent")]
106pub use cumulus_client_parachain_inherent;
107
108/// Parachain PoV recovery.
109#[cfg(feature = "cumulus-client-pov-recovery")]
110pub use cumulus_client_pov_recovery;
111
112/// Common functions used to assemble the components of a parachain node.
113#[cfg(feature = "cumulus-client-service")]
114pub use cumulus_client_service;
115
116/// AURA consensus extension pallet for parachains.
117#[cfg(feature = "cumulus-pallet-aura-ext")]
118pub use cumulus_pallet_aura_ext;
119
120/// Migrates messages from the old DMP queue pallet.
121#[cfg(feature = "cumulus-pallet-dmp-queue")]
122pub use cumulus_pallet_dmp_queue;
123
124/// Base pallet for cumulus-based parachains.
125#[cfg(feature = "cumulus-pallet-parachain-system")]
126pub use cumulus_pallet_parachain_system;
127
128/// Proc macros provided by the parachain-system pallet.
129#[cfg(feature = "cumulus-pallet-parachain-system-proc-macro")]
130pub use cumulus_pallet_parachain_system_proc_macro;
131
132/// FRAME sessions pallet benchmarking.
133#[cfg(feature = "cumulus-pallet-session-benchmarking")]
134pub use cumulus_pallet_session_benchmarking;
135
136/// Adds functionality to migrate from a Solo to a Parachain.
137#[cfg(feature = "cumulus-pallet-solo-to-para")]
138pub use cumulus_pallet_solo_to_para;
139
140/// pallet and transaction extensions for accurate proof size reclaim.
141#[cfg(feature = "cumulus-pallet-weight-reclaim")]
142pub use cumulus_pallet_weight_reclaim;
143
144/// Pallet for stuff specific to parachains' usage of XCM.
145#[cfg(feature = "cumulus-pallet-xcm")]
146pub use cumulus_pallet_xcm;
147
148/// Pallet to queue outbound and inbound XCMP messages.
149#[cfg(feature = "cumulus-pallet-xcmp-queue")]
150pub use cumulus_pallet_xcmp_queue;
151
152/// Ping Pallet for Cumulus XCM/UMP testing.
153#[cfg(feature = "cumulus-ping")]
154pub use cumulus_ping;
155
156/// Core primitives for Aura in Cumulus.
157#[cfg(feature = "cumulus-primitives-aura")]
158pub use cumulus_primitives_aura;
159
160/// Cumulus related core primitive types and traits.
161#[cfg(feature = "cumulus-primitives-core")]
162pub use cumulus_primitives_core;
163
164/// Inherent that needs to be present in every parachain block. Contains messages and a relay
165/// chain storage-proof.
166#[cfg(feature = "cumulus-primitives-parachain-inherent")]
167pub use cumulus_primitives_parachain_inherent;
168
169/// Hostfunction exposing storage proof size to the runtime.
170#[cfg(feature = "cumulus-primitives-proof-size-hostfunction")]
171pub use cumulus_primitives_proof_size_hostfunction;
172
173/// Utilities to reclaim storage weight.
174#[cfg(feature = "cumulus-primitives-storage-weight-reclaim")]
175pub use cumulus_primitives_storage_weight_reclaim;
176
177/// Provides timestamp related functionality for parachains.
178#[cfg(feature = "cumulus-primitives-timestamp")]
179pub use cumulus_primitives_timestamp;
180
181/// Helper datatypes for Cumulus.
182#[cfg(feature = "cumulus-primitives-utility")]
183pub use cumulus_primitives_utility;
184
185/// Implementation of the RelayChainInterface trait for Polkadot full-nodes.
186#[cfg(feature = "cumulus-relay-chain-inprocess-interface")]
187pub use cumulus_relay_chain_inprocess_interface;
188
189/// Common interface for different relay chain datasources.
190#[cfg(feature = "cumulus-relay-chain-interface")]
191pub use cumulus_relay_chain_interface;
192
193/// Minimal node implementation to be used in tandem with RPC or light-client mode.
194#[cfg(feature = "cumulus-relay-chain-minimal-node")]
195pub use cumulus_relay_chain_minimal_node;
196
197/// Implementation of the RelayChainInterface trait that connects to a remote RPC-node.
198#[cfg(feature = "cumulus-relay-chain-rpc-interface")]
199pub use cumulus_relay_chain_rpc_interface;
200
201/// Cumulus client common relay chain streams.
202#[cfg(feature = "cumulus-relay-chain-streams")]
203pub use cumulus_relay_chain_streams;
204
205/// Mocked relay state proof builder for testing Cumulus.
206#[cfg(feature = "cumulus-test-relay-sproof-builder")]
207pub use cumulus_test_relay_sproof_builder;
208
209/// Common resources for integration testing with xcm-emulator.
210#[cfg(feature = "emulated-integration-tests-common")]
211pub use emulated_integration_tests_common;
212
213/// Interfaces for Ethereum standards.
214#[cfg(feature = "ethereum-standards")]
215pub use ethereum_standards;
216
217/// Utility library for managing tree-like ordered data with logic for pruning the tree while
218/// finalizing nodes.
219#[cfg(feature = "fork-tree")]
220pub use fork_tree;
221
222/// Macro for benchmarking a FRAME runtime.
223#[cfg(feature = "frame-benchmarking")]
224pub use frame_benchmarking;
225
226/// CLI for benchmarking FRAME.
227#[cfg(feature = "frame-benchmarking-cli")]
228pub use frame_benchmarking_cli;
229
230/// Pallet for testing FRAME PoV benchmarking.
231#[cfg(feature = "frame-benchmarking-pallet-pov")]
232pub use frame_benchmarking_pallet_pov;
233
234/// NPoS Solution Type.
235#[cfg(feature = "frame-election-provider-solution-type")]
236pub use frame_election_provider_solution_type;
237
238/// election provider supporting traits.
239#[cfg(feature = "frame-election-provider-support")]
240pub use frame_election_provider_support;
241
242/// FRAME executives engine.
243#[cfg(feature = "frame-executive")]
244pub use frame_executive;
245
246/// FRAME signed extension for verifying the metadata hash.
247#[cfg(feature = "frame-metadata-hash-extension")]
248pub use frame_metadata_hash_extension;
249
250/// An externalities provided environment that can load itself from remote nodes or cached
251/// files.
252#[cfg(feature = "frame-remote-externalities")]
253pub use frame_remote_externalities;
254
255/// Support code for the runtime.
256#[cfg(feature = "frame-support")]
257pub use frame_support;
258
259/// Proc macro of Support code for the runtime.
260#[cfg(feature = "frame-support-procedural")]
261pub use frame_support_procedural;
262
263/// Proc macro helpers for procedural macros.
264#[cfg(feature = "frame-support-procedural-tools")]
265pub use frame_support_procedural_tools;
266
267/// Use to derive parsing for parsing struct.
268#[cfg(feature = "frame-support-procedural-tools-derive")]
269pub use frame_support_procedural_tools_derive;
270
271/// FRAME system module.
272#[cfg(feature = "frame-system")]
273pub use frame_system;
274
275/// FRAME System benchmarking.
276#[cfg(feature = "frame-system-benchmarking")]
277pub use frame_system_benchmarking;
278
279/// Runtime API definition required by System RPC extensions.
280#[cfg(feature = "frame-system-rpc-runtime-api")]
281pub use frame_system_rpc_runtime_api;
282
283/// Supporting types for try-runtime, testing and dry-running commands.
284#[cfg(feature = "frame-try-runtime")]
285pub use frame_try_runtime;
286
287/// Bag threshold generation script for pallet-bag-list.
288#[cfg(feature = "generate-bags")]
289pub use generate_bags;
290
291/// MMR Client gadget for substrate.
292#[cfg(feature = "mmr-gadget")]
293pub use mmr_gadget;
294
295/// Node-specific RPC methods for interaction with Merkle Mountain Range pallet.
296#[cfg(feature = "mmr-rpc")]
297pub use mmr_rpc;
298
299/// The Alliance pallet provides a collective for standard-setting industry collaboration.
300#[cfg(feature = "pallet-alliance")]
301pub use pallet_alliance;
302
303/// FRAME asset conversion pallet.
304#[cfg(feature = "pallet-asset-conversion")]
305pub use pallet_asset_conversion;
306
307/// FRAME asset conversion pallet's operations suite.
308#[cfg(feature = "pallet-asset-conversion-ops")]
309pub use pallet_asset_conversion_ops;
310
311/// Pallet to manage transaction payments in assets by converting them to native assets.
312#[cfg(feature = "pallet-asset-conversion-tx-payment")]
313pub use pallet_asset_conversion_tx_payment;
314
315/// Whitelist non-native assets for treasury spending and provide conversion to native balance.
316#[cfg(feature = "pallet-asset-rate")]
317pub use pallet_asset_rate;
318
319/// FRAME asset rewards pallet.
320#[cfg(feature = "pallet-asset-rewards")]
321pub use pallet_asset_rewards;
322
323/// pallet to manage transaction payments in assets.
324#[cfg(feature = "pallet-asset-tx-payment")]
325pub use pallet_asset_tx_payment;
326
327/// FRAME asset management pallet.
328#[cfg(feature = "pallet-assets")]
329pub use pallet_assets;
330
331/// Provides freezing features to `pallet-assets`.
332#[cfg(feature = "pallet-assets-freezer")]
333pub use pallet_assets_freezer;
334
335/// Provides holding features to `pallet-assets`.
336#[cfg(feature = "pallet-assets-holder")]
337pub use pallet_assets_holder;
338
339/// Provides precompiles for `pallet-assets`.
340#[cfg(feature = "pallet-assets-precompiles")]
341pub use pallet_assets_precompiles;
342
343/// FRAME atomic swap pallet.
344#[cfg(feature = "pallet-atomic-swap")]
345pub use pallet_atomic_swap;
346
347/// FRAME AURA consensus pallet.
348#[cfg(feature = "pallet-aura")]
349pub use pallet_aura;
350
351/// FRAME pallet for authority discovery.
352#[cfg(feature = "pallet-authority-discovery")]
353pub use pallet_authority_discovery;
354
355/// Block and Uncle Author tracking for the FRAME.
356#[cfg(feature = "pallet-authorship")]
357pub use pallet_authorship;
358
359/// Consensus extension module for BABE consensus. Collects on-chain randomness from VRF
360/// outputs and manages epoch transitions.
361#[cfg(feature = "pallet-babe")]
362pub use pallet_babe;
363
364/// FRAME pallet bags list.
365#[cfg(feature = "pallet-bags-list")]
366pub use pallet_bags_list;
367
368/// FRAME pallet to manage balances.
369#[cfg(feature = "pallet-balances")]
370pub use pallet_balances;
371
372/// BEEFY FRAME pallet.
373#[cfg(feature = "pallet-beefy")]
374pub use pallet_beefy;
375
376/// BEEFY + MMR runtime utilities.
377#[cfg(feature = "pallet-beefy-mmr")]
378pub use pallet_beefy_mmr;
379
380/// FRAME pallet to manage bounties.
381#[cfg(feature = "pallet-bounties")]
382pub use pallet_bounties;
383
384/// Module implementing GRANDPA on-chain light client used for bridging consensus of
385/// substrate-based chains.
386#[cfg(feature = "pallet-bridge-grandpa")]
387pub use pallet_bridge_grandpa;
388
389/// Module that allows bridged chains to exchange messages using lane concept.
390#[cfg(feature = "pallet-bridge-messages")]
391pub use pallet_bridge_messages;
392
393/// Module that allows bridged relay chains to exchange information on their parachains' heads.
394#[cfg(feature = "pallet-bridge-parachains")]
395pub use pallet_bridge_parachains;
396
397/// Module used to store relayer rewards and coordinate relayers set.
398#[cfg(feature = "pallet-bridge-relayers")]
399pub use pallet_bridge_relayers;
400
401/// Brokerage tool for managing Polkadot Core scheduling.
402#[cfg(feature = "pallet-broker")]
403pub use pallet_broker;
404
405/// FRAME pallet to manage child bounties.
406#[cfg(feature = "pallet-child-bounties")]
407pub use pallet_child_bounties;
408
409/// Simple pallet to select collators for a parachain.
410#[cfg(feature = "pallet-collator-selection")]
411pub use pallet_collator_selection;
412
413/// Collective system: Members of a set of account IDs can make their collective feelings known
414/// through dispatched calls from one of two specialized origins.
415#[cfg(feature = "pallet-collective")]
416pub use pallet_collective;
417
418/// Managed content.
419#[cfg(feature = "pallet-collective-content")]
420pub use pallet_collective_content;
421
422/// FRAME pallet for WASM contracts.
423#[cfg(feature = "pallet-contracts")]
424pub use pallet_contracts;
425
426/// A mock network for testing pallet-contracts.
427#[cfg(feature = "pallet-contracts-mock-network")]
428pub use pallet_contracts_mock_network;
429
430/// Procedural macros used in pallet_contracts.
431#[cfg(feature = "pallet-contracts-proc-macro")]
432pub use pallet_contracts_proc_macro;
433
434/// Exposes all the host functions that a contract can import.
435#[cfg(feature = "pallet-contracts-uapi")]
436pub use pallet_contracts_uapi;
437
438/// FRAME pallet for conviction voting in referenda.
439#[cfg(feature = "pallet-conviction-voting")]
440pub use pallet_conviction_voting;
441
442/// Logic as per the description of The Fellowship for core Polkadot technology.
443#[cfg(feature = "pallet-core-fellowship")]
444pub use pallet_core_fellowship;
445
446/// FRAME delegated staking pallet.
447#[cfg(feature = "pallet-delegated-staking")]
448pub use pallet_delegated_staking;
449
450/// FRAME pallet for democracy.
451#[cfg(feature = "pallet-democracy")]
452pub use pallet_democracy;
453
454/// FRAME derivatives pallet.
455#[cfg(feature = "pallet-derivatives")]
456pub use pallet_derivatives;
457
458/// FRAME example pallet.
459#[cfg(feature = "pallet-dev-mode")]
460pub use pallet_dev_mode;
461
462/// Dummy DIM Pallet.
463#[cfg(feature = "pallet-dummy-dim")]
464pub use pallet_dummy_dim;
465
466/// PALLET multi phase+block election providers.
467#[cfg(feature = "pallet-election-provider-multi-block")]
468pub use pallet_election_provider_multi_block;
469
470/// PALLET two phase election providers.
471#[cfg(feature = "pallet-election-provider-multi-phase")]
472pub use pallet_election_provider_multi_phase;
473
474/// Benchmarking for election provider support onchain config trait.
475#[cfg(feature = "pallet-election-provider-support-benchmarking")]
476pub use pallet_election_provider_support_benchmarking;
477
478/// FRAME pallet based on seq-Phragmén election method.
479#[cfg(feature = "pallet-elections-phragmen")]
480pub use pallet_elections_phragmen;
481
482/// FRAME fast unstake pallet.
483#[cfg(feature = "pallet-fast-unstake")]
484pub use pallet_fast_unstake;
485
486/// FRAME pallet for pushing a chain to its weight limits.
487#[cfg(feature = "pallet-glutton")]
488pub use pallet_glutton;
489
490/// FRAME pallet for GRANDPA finality gadget.
491#[cfg(feature = "pallet-grandpa")]
492pub use pallet_grandpa;
493
494/// FRAME identity management pallet.
495#[cfg(feature = "pallet-identity")]
496pub use pallet_identity;
497
498/// FRAME's I'm online pallet.
499#[cfg(feature = "pallet-im-online")]
500pub use pallet_im_online;
501
502/// FRAME indices management pallet.
503#[cfg(feature = "pallet-indices")]
504pub use pallet_indices;
505
506/// Insecure do not use in production: FRAME randomness collective flip pallet.
507#[cfg(feature = "pallet-insecure-randomness-collective-flip")]
508pub use pallet_insecure_randomness_collective_flip;
509
510/// FRAME Participation Lottery Pallet.
511#[cfg(feature = "pallet-lottery")]
512pub use pallet_lottery;
513
514/// FRAME membership management pallet.
515#[cfg(feature = "pallet-membership")]
516pub use pallet_membership;
517
518/// FRAME pallet to queue and process messages.
519#[cfg(feature = "pallet-message-queue")]
520pub use pallet_message_queue;
521
522/// FRAME pallet enabling meta transactions.
523#[cfg(feature = "pallet-meta-tx")]
524pub use pallet_meta_tx;
525
526/// FRAME pallet to execute multi-block migrations.
527#[cfg(feature = "pallet-migrations")]
528pub use pallet_migrations;
529
530/// FRAME's mixnet pallet.
531#[cfg(feature = "pallet-mixnet")]
532pub use pallet_mixnet;
533
534/// FRAME Merkle Mountain Range pallet.
535#[cfg(feature = "pallet-mmr")]
536pub use pallet_mmr;
537
538/// FRAME pallet to manage multi-asset and cross-chain bounties.
539#[cfg(feature = "pallet-multi-asset-bounties")]
540pub use pallet_multi_asset_bounties;
541
542/// FRAME multi-signature dispatch pallet.
543#[cfg(feature = "pallet-multisig")]
544pub use pallet_multisig;
545
546/// FRAME pallet to convert non-fungible to fungible tokens.
547#[cfg(feature = "pallet-nft-fractionalization")]
548pub use pallet_nft_fractionalization;
549
550/// FRAME NFTs pallet.
551#[cfg(feature = "pallet-nfts")]
552pub use pallet_nfts;
553
554/// Runtime API for the FRAME NFTs pallet.
555#[cfg(feature = "pallet-nfts-runtime-api")]
556pub use pallet_nfts_runtime_api;
557
558/// FRAME pallet for rewarding account freezing.
559#[cfg(feature = "pallet-nis")]
560pub use pallet_nis;
561
562/// FRAME pallet for node authorization.
563#[cfg(feature = "pallet-node-authorization")]
564pub use pallet_node_authorization;
565
566/// FRAME nomination pools pallet.
567#[cfg(feature = "pallet-nomination-pools")]
568pub use pallet_nomination_pools;
569
570/// FRAME nomination pools pallet benchmarking.
571#[cfg(feature = "pallet-nomination-pools-benchmarking")]
572pub use pallet_nomination_pools_benchmarking;
573
574/// Runtime API for nomination-pools FRAME pallet.
575#[cfg(feature = "pallet-nomination-pools-runtime-api")]
576pub use pallet_nomination_pools_runtime_api;
577
578/// FRAME offences pallet.
579#[cfg(feature = "pallet-offences")]
580pub use pallet_offences;
581
582/// FRAME offences pallet benchmarking.
583#[cfg(feature = "pallet-offences-benchmarking")]
584pub use pallet_offences_benchmarking;
585
586/// FRAME oracle pallet for off-chain data.
587#[cfg(feature = "pallet-oracle")]
588pub use pallet_oracle;
589
590/// Runtime API for the oracle pallet.
591#[cfg(feature = "pallet-oracle-runtime-api")]
592pub use pallet_oracle_runtime_api;
593
594/// Pallet to give some execution allowance for some origins.
595#[cfg(feature = "pallet-origin-restriction")]
596pub use pallet_origin_restriction;
597
598/// FRAME pallet that provides a paged list data structure.
599#[cfg(feature = "pallet-paged-list")]
600pub use pallet_paged_list;
601
602/// Pallet to store and configure parameters.
603#[cfg(feature = "pallet-parameters")]
604pub use pallet_parameters;
605
606/// Personhood-tracking pallet.
607#[cfg(feature = "pallet-people")]
608pub use pallet_people;
609
610/// FRAME pallet for storing preimages of hashes.
611#[cfg(feature = "pallet-preimage")]
612pub use pallet_preimage;
613
614/// FRAME proxying pallet.
615#[cfg(feature = "pallet-proxy")]
616pub use pallet_proxy;
617
618/// Ranked collective system: Members of a set of account IDs can make their collective
619/// feelings known through dispatched calls from one of two specialized origins.
620#[cfg(feature = "pallet-ranked-collective")]
621pub use pallet_ranked_collective;
622
623/// FRAME account recovery pallet.
624#[cfg(feature = "pallet-recovery")]
625pub use pallet_recovery;
626
627/// FRAME pallet for inclusive on-chain decisions.
628#[cfg(feature = "pallet-referenda")]
629pub use pallet_referenda;
630
631/// Remark storage pallet.
632#[cfg(feature = "pallet-remark")]
633pub use pallet_remark;
634
635/// FRAME pallet for PolkaVM contracts.
636#[cfg(feature = "pallet-revive")]
637pub use pallet_revive;
638
639/// Procedural macros used in pallet_revive.
640#[cfg(feature = "pallet-revive-proc-macro")]
641pub use pallet_revive_proc_macro;
642
643/// Exposes all the host functions that a contract can import.
644#[cfg(feature = "pallet-revive-uapi")]
645pub use pallet_revive_uapi;
646
647/// FRAME root offences pallet.
648#[cfg(feature = "pallet-root-offences")]
649pub use pallet_root_offences;
650
651/// FRAME root testing pallet.
652#[cfg(feature = "pallet-root-testing")]
653pub use pallet_root_testing;
654
655/// FRAME safe-mode pallet.
656#[cfg(feature = "pallet-safe-mode")]
657pub use pallet_safe_mode;
658
659/// Paymaster.
660#[cfg(feature = "pallet-salary")]
661pub use pallet_salary;
662
663/// FRAME Scheduler pallet.
664#[cfg(feature = "pallet-scheduler")]
665pub use pallet_scheduler;
666
667/// FRAME pallet for scored pools.
668#[cfg(feature = "pallet-scored-pool")]
669pub use pallet_scored_pool;
670
671/// FRAME sessions pallet.
672#[cfg(feature = "pallet-session")]
673pub use pallet_session;
674
675/// FRAME sessions pallet benchmarking.
676#[cfg(feature = "pallet-session-benchmarking")]
677pub use pallet_session_benchmarking;
678
679/// Pallet to skip payments for calls annotated with `feeless_if` if the respective conditions
680/// are satisfied.
681#[cfg(feature = "pallet-skip-feeless-payment")]
682pub use pallet_skip_feeless_payment;
683
684/// FRAME society pallet.
685#[cfg(feature = "pallet-society")]
686pub use pallet_society;
687
688/// FRAME pallet staking.
689#[cfg(feature = "pallet-staking")]
690pub use pallet_staking;
691
692/// FRAME pallet staking async.
693#[cfg(feature = "pallet-staking-async")]
694pub use pallet_staking_async;
695
696/// Pallet handling the communication with staking-rc-client. It's role is to glue the staking
697/// pallet (on AssetHub chain) and session pallet (on Relay Chain) in a transparent way.
698#[cfg(feature = "pallet-staking-async-ah-client")]
699pub use pallet_staking_async_ah_client;
700
701/// Pallet handling the communication with staking-ah-client. It's role is to glue the staking
702/// pallet (on AssetHub chain) and session pallet (on Relay Chain) in a transparent way.
703#[cfg(feature = "pallet-staking-async-rc-client")]
704pub use pallet_staking_async_rc_client;
705
706/// Reward function for FRAME staking pallet.
707#[cfg(feature = "pallet-staking-async-reward-fn")]
708pub use pallet_staking_async_reward_fn;
709
710/// RPC runtime API for transaction payment FRAME pallet.
711#[cfg(feature = "pallet-staking-async-runtime-api")]
712pub use pallet_staking_async_runtime_api;
713
714/// Reward Curve for FRAME staking pallet.
715#[cfg(feature = "pallet-staking-reward-curve")]
716pub use pallet_staking_reward_curve;
717
718/// Reward function for FRAME staking pallet.
719#[cfg(feature = "pallet-staking-reward-fn")]
720pub use pallet_staking_reward_fn;
721
722/// RPC runtime API for transaction payment FRAME pallet.
723#[cfg(feature = "pallet-staking-runtime-api")]
724pub use pallet_staking_runtime_api;
725
726/// FRAME pallet migration of trie.
727#[cfg(feature = "pallet-state-trie-migration")]
728pub use pallet_state_trie_migration;
729
730/// FRAME pallet for statement store.
731#[cfg(feature = "pallet-statement")]
732pub use pallet_statement;
733
734/// FRAME pallet for sudo.
735#[cfg(feature = "pallet-sudo")]
736pub use pallet_sudo;
737
738/// FRAME Timestamp Module.
739#[cfg(feature = "pallet-timestamp")]
740pub use pallet_timestamp;
741
742/// FRAME pallet to manage tips.
743#[cfg(feature = "pallet-tips")]
744pub use pallet_tips;
745
746/// FRAME pallet to manage transaction payments.
747#[cfg(feature = "pallet-transaction-payment")]
748pub use pallet_transaction_payment;
749
750/// RPC interface for the transaction payment pallet.
751#[cfg(feature = "pallet-transaction-payment-rpc")]
752pub use pallet_transaction_payment_rpc;
753
754/// RPC runtime API for transaction payment FRAME pallet.
755#[cfg(feature = "pallet-transaction-payment-rpc-runtime-api")]
756pub use pallet_transaction_payment_rpc_runtime_api;
757
758/// Storage chain pallet.
759#[cfg(feature = "pallet-transaction-storage")]
760pub use pallet_transaction_storage;
761
762/// FRAME pallet to manage treasury.
763#[cfg(feature = "pallet-treasury")]
764pub use pallet_treasury;
765
766/// FRAME transaction pause pallet.
767#[cfg(feature = "pallet-tx-pause")]
768pub use pallet_tx_pause;
769
770/// FRAME NFT asset management pallet.
771#[cfg(feature = "pallet-uniques")]
772pub use pallet_uniques;
773
774/// FRAME utilities pallet.
775#[cfg(feature = "pallet-utility")]
776pub use pallet_utility;
777
778/// FRAME verify signature pallet.
779#[cfg(feature = "pallet-verify-signature")]
780pub use pallet_verify_signature;
781
782/// FRAME pallet for manage vesting.
783#[cfg(feature = "pallet-vesting")]
784pub use pallet_vesting;
785
786/// FRAME pallet for whitelisting calls, and dispatching from a specific origin.
787#[cfg(feature = "pallet-whitelist")]
788pub use pallet_whitelist;
789
790/// A pallet for handling XCM programs.
791#[cfg(feature = "pallet-xcm")]
792pub use pallet_xcm;
793
794/// Benchmarks for the XCM pallet.
795#[cfg(feature = "pallet-xcm-benchmarks")]
796pub use pallet_xcm_benchmarks;
797
798/// Module that adds dynamic bridges/lanes support to XCM infrastructure at the bridge hub.
799#[cfg(feature = "pallet-xcm-bridge-hub")]
800pub use pallet_xcm_bridge_hub;
801
802/// Bridge hub interface for sibling/parent chains with dynamic fees support.
803#[cfg(feature = "pallet-xcm-bridge-hub-router")]
804pub use pallet_xcm_bridge_hub_router;
805
806/// Provides precompiles for `pallet-xcm`.
807#[cfg(feature = "pallet-xcm-precompiles")]
808pub use pallet_xcm_precompiles;
809
810/// Logic which is common to all parachain runtimes.
811#[cfg(feature = "parachains-common")]
812pub use parachains_common;
813
814/// Common types for parachains.
815#[cfg(feature = "parachains-common-types")]
816pub use parachains_common_types;
817
818/// Utils for Runtimes testing.
819#[cfg(feature = "parachains-runtimes-test-utils")]
820pub use parachains_runtimes_test_utils;
821
822/// Polkadot Approval Distribution subsystem for the distribution of assignments and approvals
823/// for approval checks on candidates over the network.
824#[cfg(feature = "polkadot-approval-distribution")]
825pub use polkadot_approval_distribution;
826
827/// Polkadot Bitfiled Distribution subsystem, which gossips signed availability bitfields used
828/// to compactly determine which backed candidates are available or not based on a 2/3+ quorum.
829#[cfg(feature = "polkadot-availability-bitfield-distribution")]
830pub use polkadot_availability_bitfield_distribution;
831
832/// The Availability Distribution subsystem. Requests the required availability data. Also
833/// distributes availability data and chunks to requesters.
834#[cfg(feature = "polkadot-availability-distribution")]
835pub use polkadot_availability_distribution;
836
837/// The Availability Recovery subsystem. Handles requests for recovering the availability data
838/// of included candidates.
839#[cfg(feature = "polkadot-availability-recovery")]
840pub use polkadot_availability_recovery;
841
842/// Polkadot Relay-chain Client Node.
843#[cfg(feature = "polkadot-cli")]
844pub use polkadot_cli;
845
846/// Polkadot Collator Protocol subsystem. Allows collators and validators to talk to each
847/// other.
848#[cfg(feature = "polkadot-collator-protocol")]
849pub use polkadot_collator_protocol;
850
851/// Core Polkadot types used by Relay Chains and parachains.
852#[cfg(feature = "polkadot-core-primitives")]
853pub use polkadot_core_primitives;
854
855/// Polkadot Dispute Distribution subsystem, which ensures all concerned validators are aware
856/// of a dispute and have the relevant votes.
857#[cfg(feature = "polkadot-dispute-distribution")]
858pub use polkadot_dispute_distribution;
859
860/// Erasure coding used for Polkadot's availability system.
861#[cfg(feature = "polkadot-erasure-coding")]
862pub use polkadot_erasure_coding;
863
864/// Polkadot Gossip Support subsystem. Responsible for keeping track of session changes and
865/// issuing a connection request to the relevant validators on every new session.
866#[cfg(feature = "polkadot-gossip-support")]
867pub use polkadot_gossip_support;
868
869/// The Network Bridge Subsystem — protocol multiplexer for Polkadot.
870#[cfg(feature = "polkadot-network-bridge")]
871pub use polkadot_network_bridge;
872
873/// Collator-side subsystem that handles incoming candidate submissions from the parachain.
874#[cfg(feature = "polkadot-node-collation-generation")]
875pub use polkadot_node_collation_generation;
876
877/// Approval Voting Subsystem of the Polkadot node.
878#[cfg(feature = "polkadot-node-core-approval-voting")]
879pub use polkadot_node_core_approval_voting;
880
881/// Approval Voting Subsystem running approval work in parallel.
882#[cfg(feature = "polkadot-node-core-approval-voting-parallel")]
883pub use polkadot_node_core_approval_voting_parallel;
884
885/// The Availability Store subsystem. Wrapper over the DB that stores availability data and
886/// chunks.
887#[cfg(feature = "polkadot-node-core-av-store")]
888pub use polkadot_node_core_av_store;
889
890/// The Candidate Backing Subsystem. Tracks parachain candidates that can be backed, as well as
891/// the issuance of statements about candidates.
892#[cfg(feature = "polkadot-node-core-backing")]
893pub use polkadot_node_core_backing;
894
895/// Bitfield signing subsystem for the Polkadot node.
896#[cfg(feature = "polkadot-node-core-bitfield-signing")]
897pub use polkadot_node_core_bitfield_signing;
898
899/// Polkadot crate that implements the Candidate Validation subsystem. Handles requests to
900/// validate candidates according to a PVF.
901#[cfg(feature = "polkadot-node-core-candidate-validation")]
902pub use polkadot_node_core_candidate_validation;
903
904/// The Chain API subsystem provides access to chain related utility functions like block
905/// number to hash conversions.
906#[cfg(feature = "polkadot-node-core-chain-api")]
907pub use polkadot_node_core_chain_api;
908
909/// Chain Selection Subsystem.
910#[cfg(feature = "polkadot-node-core-chain-selection")]
911pub use polkadot_node_core_chain_selection;
912
913/// The node-side components that participate in disputes.
914#[cfg(feature = "polkadot-node-core-dispute-coordinator")]
915pub use polkadot_node_core_dispute_coordinator;
916
917/// Parachains inherent data provider for Polkadot node.
918#[cfg(feature = "polkadot-node-core-parachains-inherent")]
919pub use polkadot_node_core_parachains_inherent;
920
921/// The Prospective Parachains subsystem. Tracks and handles prospective parachain fragments.
922#[cfg(feature = "polkadot-node-core-prospective-parachains")]
923pub use polkadot_node_core_prospective_parachains;
924
925/// Responsible for assembling a relay chain block from a set of available parachain
926/// candidates.
927#[cfg(feature = "polkadot-node-core-provisioner")]
928pub use polkadot_node_core_provisioner;
929
930/// Polkadot crate that implements the PVF validation host. Responsible for coordinating
931/// preparation and execution of PVFs.
932#[cfg(feature = "polkadot-node-core-pvf")]
933pub use polkadot_node_core_pvf;
934
935/// Polkadot crate that implements the PVF pre-checking subsystem. Responsible for checking and
936/// voting for PVFs that are pending approval.
937#[cfg(feature = "polkadot-node-core-pvf-checker")]
938pub use polkadot_node_core_pvf_checker;
939
940/// Polkadot crate that contains functionality related to PVFs that is shared by the PVF host
941/// and the PVF workers.
942#[cfg(feature = "polkadot-node-core-pvf-common")]
943pub use polkadot_node_core_pvf_common;
944
945/// Polkadot crate that contains the logic for executing PVFs. Used by the
946/// polkadot-execute-worker binary.
947#[cfg(feature = "polkadot-node-core-pvf-execute-worker")]
948pub use polkadot_node_core_pvf_execute_worker;
949
950/// Polkadot crate that contains the logic for preparing PVFs. Used by the
951/// polkadot-prepare-worker binary.
952#[cfg(feature = "polkadot-node-core-pvf-prepare-worker")]
953pub use polkadot_node_core_pvf_prepare_worker;
954
955/// Wrapper around the parachain-related runtime APIs.
956#[cfg(feature = "polkadot-node-core-runtime-api")]
957pub use polkadot_node_core_runtime_api;
958
959/// Subsystem metric helpers.
960#[cfg(feature = "polkadot-node-metrics")]
961pub use polkadot_node_metrics;
962
963/// Primitives types for the Node-side.
964#[cfg(feature = "polkadot-node-network-protocol")]
965pub use polkadot_node_network_protocol;
966
967/// Primitives types for the Node-side.
968#[cfg(feature = "polkadot-node-primitives")]
969pub use polkadot_node_primitives;
970
971/// Subsystem traits and message definitions and the generated overseer.
972#[cfg(feature = "polkadot-node-subsystem")]
973pub use polkadot_node_subsystem;
974
975/// Subsystem traits and message definitions.
976#[cfg(feature = "polkadot-node-subsystem-types")]
977pub use polkadot_node_subsystem_types;
978
979/// Subsystem traits and message definitions.
980#[cfg(feature = "polkadot-node-subsystem-util")]
981pub use polkadot_node_subsystem_util;
982
983/// Helper library that can be used to build a parachain node.
984#[cfg(feature = "polkadot-omni-node-lib")]
985pub use polkadot_omni_node_lib;
986
987/// System overseer of the Polkadot node.
988#[cfg(feature = "polkadot-overseer")]
989pub use polkadot_overseer;
990
991/// Types and utilities for creating and working with parachains.
992#[cfg(feature = "polkadot-parachain-primitives")]
993pub use polkadot_parachain_primitives;
994
995/// Shared primitives used by Polkadot runtime.
996#[cfg(feature = "polkadot-primitives")]
997pub use polkadot_primitives;
998
999/// Test helpers for Polkadot runtime primitives.
1000#[cfg(feature = "polkadot-primitives-test-helpers")]
1001pub use polkadot_primitives_test_helpers;
1002
1003/// Polkadot specific RPC functionality.
1004#[cfg(feature = "polkadot-rpc")]
1005pub use polkadot_rpc;
1006
1007/// Pallets and constants used in Relay Chain networks.
1008#[cfg(feature = "polkadot-runtime-common")]
1009pub use polkadot_runtime_common;
1010
1011/// Runtime metric interface for the Polkadot node.
1012#[cfg(feature = "polkadot-runtime-metrics")]
1013pub use polkadot_runtime_metrics;
1014
1015/// Relay Chain runtime code responsible for Parachains.
1016#[cfg(feature = "polkadot-runtime-parachains")]
1017pub use polkadot_runtime_parachains;
1018
1019/// The single package to get you started with building frame pallets and runtimes.
1020#[cfg(feature = "polkadot-sdk-frame")]
1021pub use polkadot_sdk_frame;
1022
1023/// Utils to tie different Polkadot components together and allow instantiation of a node.
1024#[cfg(feature = "polkadot-service")]
1025pub use polkadot_service;
1026
1027/// Statement Distribution Subsystem.
1028#[cfg(feature = "polkadot-statement-distribution")]
1029pub use polkadot_statement_distribution;
1030
1031/// Stores messages other authorities issue about candidates in Polkadot.
1032#[cfg(feature = "polkadot-statement-table")]
1033pub use polkadot_statement_table;
1034
1035/// Collection of allocator implementations.
1036#[cfg(feature = "sc-allocator")]
1037pub use sc_allocator;
1038
1039/// Substrate authority discovery.
1040#[cfg(feature = "sc-authority-discovery")]
1041pub use sc_authority_discovery;
1042
1043/// Basic implementation of block-authoring logic.
1044#[cfg(feature = "sc-basic-authorship")]
1045pub use sc_basic_authorship;
1046
1047/// Substrate block builder.
1048#[cfg(feature = "sc-block-builder")]
1049pub use sc_block_builder;
1050
1051/// Substrate chain configurations.
1052#[cfg(feature = "sc-chain-spec")]
1053pub use sc_chain_spec;
1054
1055/// Macros to derive chain spec extension traits implementation.
1056#[cfg(feature = "sc-chain-spec-derive")]
1057pub use sc_chain_spec_derive;
1058
1059/// Substrate CLI interface.
1060#[cfg(feature = "sc-cli")]
1061pub use sc_cli;
1062
1063/// Substrate client interfaces.
1064#[cfg(feature = "sc-client-api")]
1065pub use sc_client_api;
1066
1067/// Client backend that uses RocksDB database as storage.
1068#[cfg(feature = "sc-client-db")]
1069pub use sc_client_db;
1070
1071/// Collection of common consensus specific implementations for Substrate (client).
1072#[cfg(feature = "sc-consensus")]
1073pub use sc_consensus;
1074
1075/// Aura consensus algorithm for substrate.
1076#[cfg(feature = "sc-consensus-aura")]
1077pub use sc_consensus_aura;
1078
1079/// BABE consensus algorithm for substrate.
1080#[cfg(feature = "sc-consensus-babe")]
1081pub use sc_consensus_babe;
1082
1083/// RPC extensions for the BABE consensus algorithm.
1084#[cfg(feature = "sc-consensus-babe-rpc")]
1085pub use sc_consensus_babe_rpc;
1086
1087/// BEEFY Client gadget for substrate.
1088#[cfg(feature = "sc-consensus-beefy")]
1089pub use sc_consensus_beefy;
1090
1091/// RPC for the BEEFY Client gadget for substrate.
1092#[cfg(feature = "sc-consensus-beefy-rpc")]
1093pub use sc_consensus_beefy_rpc;
1094
1095/// Generic epochs-based utilities for consensus.
1096#[cfg(feature = "sc-consensus-epochs")]
1097pub use sc_consensus_epochs;
1098
1099/// Integration of the GRANDPA finality gadget into substrate.
1100#[cfg(feature = "sc-consensus-grandpa")]
1101pub use sc_consensus_grandpa;
1102
1103/// RPC extensions for the GRANDPA finality gadget.
1104#[cfg(feature = "sc-consensus-grandpa-rpc")]
1105pub use sc_consensus_grandpa_rpc;
1106
1107/// Manual sealing engine for Substrate.
1108#[cfg(feature = "sc-consensus-manual-seal")]
1109pub use sc_consensus_manual_seal;
1110
1111/// PoW consensus algorithm for substrate.
1112#[cfg(feature = "sc-consensus-pow")]
1113pub use sc_consensus_pow;
1114
1115/// Generic slots-based utilities for consensus.
1116#[cfg(feature = "sc-consensus-slots")]
1117pub use sc_consensus_slots;
1118
1119/// A crate that provides means of executing/dispatching calls into the runtime.
1120#[cfg(feature = "sc-executor")]
1121pub use sc_executor;
1122
1123/// A set of common definitions that are needed for defining execution engines.
1124#[cfg(feature = "sc-executor-common")]
1125pub use sc_executor_common;
1126
1127/// PolkaVM executor for Substrate.
1128#[cfg(feature = "sc-executor-polkavm")]
1129pub use sc_executor_polkavm;
1130
1131/// Defines a `WasmRuntime` that uses the Wasmtime JIT to execute.
1132#[cfg(feature = "sc-executor-wasmtime")]
1133pub use sc_executor_wasmtime;
1134
1135/// Substrate informant.
1136#[cfg(feature = "sc-informant")]
1137pub use sc_informant;
1138
1139/// Keystore (and session key management) for ed25519 based chains like Polkadot.
1140#[cfg(feature = "sc-keystore")]
1141pub use sc_keystore;
1142
1143/// Substrate mixnet service.
1144#[cfg(feature = "sc-mixnet")]
1145pub use sc_mixnet;
1146
1147/// Substrate network protocol.
1148#[cfg(feature = "sc-network")]
1149pub use sc_network;
1150
1151/// Substrate network common.
1152#[cfg(feature = "sc-network-common")]
1153pub use sc_network_common;
1154
1155/// Gossiping for the Substrate network protocol.
1156#[cfg(feature = "sc-network-gossip")]
1157pub use sc_network_gossip;
1158
1159/// Substrate light network protocol.
1160#[cfg(feature = "sc-network-light")]
1161pub use sc_network_light;
1162
1163/// Substrate statement protocol.
1164#[cfg(feature = "sc-network-statement")]
1165pub use sc_network_statement;
1166
1167/// Substrate sync network protocol.
1168#[cfg(feature = "sc-network-sync")]
1169pub use sc_network_sync;
1170
1171/// Substrate transaction protocol.
1172#[cfg(feature = "sc-network-transactions")]
1173pub use sc_network_transactions;
1174
1175/// Substrate network types.
1176#[cfg(feature = "sc-network-types")]
1177pub use sc_network_types;
1178
1179/// Substrate offchain workers.
1180#[cfg(feature = "sc-offchain")]
1181pub use sc_offchain;
1182
1183/// Basic metrics for block production.
1184#[cfg(feature = "sc-proposer-metrics")]
1185pub use sc_proposer_metrics;
1186
1187/// Substrate Client RPC.
1188#[cfg(feature = "sc-rpc")]
1189pub use sc_rpc;
1190
1191/// Substrate RPC interfaces.
1192#[cfg(feature = "sc-rpc-api")]
1193pub use sc_rpc_api;
1194
1195/// Substrate RPC servers.
1196#[cfg(feature = "sc-rpc-server")]
1197pub use sc_rpc_server;
1198
1199/// Substrate RPC interface v2.
1200#[cfg(feature = "sc-rpc-spec-v2")]
1201pub use sc_rpc_spec_v2;
1202
1203/// Substrate client utilities for frame runtime functions calls.
1204#[cfg(feature = "sc-runtime-utilities")]
1205pub use sc_runtime_utilities;
1206
1207/// Substrate service. Starts a thread that spins up the network, client, and extrinsic pool.
1208/// Manages communication between them.
1209#[cfg(feature = "sc-service")]
1210pub use sc_service;
1211
1212/// State database maintenance. Handles canonicalization and pruning in the database.
1213#[cfg(feature = "sc-state-db")]
1214pub use sc_state_db;
1215
1216/// Substrate statement store.
1217#[cfg(feature = "sc-statement-store")]
1218pub use sc_statement_store;
1219
1220/// Storage monitor service for substrate.
1221#[cfg(feature = "sc-storage-monitor")]
1222pub use sc_storage_monitor;
1223
1224/// A RPC handler to create sync states for light clients.
1225#[cfg(feature = "sc-sync-state-rpc")]
1226pub use sc_sync_state_rpc;
1227
1228/// A crate that provides basic hardware and software telemetry information.
1229#[cfg(feature = "sc-sysinfo")]
1230pub use sc_sysinfo;
1231
1232/// Telemetry utils.
1233#[cfg(feature = "sc-telemetry")]
1234pub use sc_telemetry;
1235
1236/// Instrumentation implementation for substrate.
1237#[cfg(feature = "sc-tracing")]
1238pub use sc_tracing;
1239
1240/// Helper macros for Substrate's client CLI.
1241#[cfg(feature = "sc-tracing-proc-macro")]
1242pub use sc_tracing_proc_macro;
1243
1244/// Substrate transaction pool implementation.
1245#[cfg(feature = "sc-transaction-pool")]
1246pub use sc_transaction_pool;
1247
1248/// Transaction pool client facing API.
1249#[cfg(feature = "sc-transaction-pool-api")]
1250pub use sc_transaction_pool_api;
1251
1252/// I/O for Substrate runtimes.
1253#[cfg(feature = "sc-utils")]
1254pub use sc_utils;
1255
1256/// Helper crate for generating slot ranges for the Polkadot runtime.
1257#[cfg(feature = "slot-range-helper")]
1258pub use slot_range_helper;
1259
1260/// Substrate runtime api primitives.
1261#[cfg(feature = "sp-api")]
1262pub use sp_api;
1263
1264/// Macros for declaring and implementing runtime apis.
1265#[cfg(feature = "sp-api-proc-macro")]
1266pub use sp_api_proc_macro;
1267
1268/// Provides facilities for generating application specific crypto wrapper types.
1269#[cfg(feature = "sp-application-crypto")]
1270pub use sp_application_crypto;
1271
1272/// Minimal fixed point arithmetic primitives and types for runtime.
1273#[cfg(feature = "sp-arithmetic")]
1274pub use sp_arithmetic;
1275
1276/// Authority discovery primitives.
1277#[cfg(feature = "sp-authority-discovery")]
1278pub use sp_authority_discovery;
1279
1280/// The block builder runtime api.
1281#[cfg(feature = "sp-block-builder")]
1282pub use sp_block_builder;
1283
1284/// Substrate blockchain traits and primitives.
1285#[cfg(feature = "sp-blockchain")]
1286pub use sp_blockchain;
1287
1288/// Common utilities for building and using consensus engines in substrate.
1289#[cfg(feature = "sp-consensus")]
1290pub use sp_consensus;
1291
1292/// Primitives for Aura consensus.
1293#[cfg(feature = "sp-consensus-aura")]
1294pub use sp_consensus_aura;
1295
1296/// Primitives for BABE consensus.
1297#[cfg(feature = "sp-consensus-babe")]
1298pub use sp_consensus_babe;
1299
1300/// Primitives for BEEFY protocol.
1301#[cfg(feature = "sp-consensus-beefy")]
1302pub use sp_consensus_beefy;
1303
1304/// Primitives for GRANDPA integration, suitable for WASM compilation.
1305#[cfg(feature = "sp-consensus-grandpa")]
1306pub use sp_consensus_grandpa;
1307
1308/// Primitives for Aura consensus.
1309#[cfg(feature = "sp-consensus-pow")]
1310pub use sp_consensus_pow;
1311
1312/// Primitives for slots-based consensus.
1313#[cfg(feature = "sp-consensus-slots")]
1314pub use sp_consensus_slots;
1315
1316/// Shareable Substrate types.
1317#[cfg(feature = "sp-core")]
1318pub use sp_core;
1319
1320/// Hashing primitives (deprecated: use sp-crypto-hashing for new applications).
1321#[cfg(feature = "sp-core-hashing")]
1322pub use sp_core_hashing;
1323
1324/// Procedural macros for calculating static hashes (deprecated in favor of
1325/// `sp-crypto-hashing-proc-macro`).
1326#[cfg(feature = "sp-core-hashing-proc-macro")]
1327pub use sp_core_hashing_proc_macro;
1328
1329/// Host functions for common Arkworks elliptic curve operations.
1330#[cfg(feature = "sp-crypto-ec-utils")]
1331pub use sp_crypto_ec_utils;
1332
1333/// Hashing primitives.
1334#[cfg(feature = "sp-crypto-hashing")]
1335pub use sp_crypto_hashing;
1336
1337/// Procedural macros for calculating static hashes.
1338#[cfg(feature = "sp-crypto-hashing-proc-macro")]
1339pub use sp_crypto_hashing_proc_macro;
1340
1341/// Substrate database trait.
1342#[cfg(feature = "sp-database")]
1343pub use sp_database;
1344
1345/// Macros to derive runtime debug implementation.
1346#[cfg(feature = "sp-debug-derive")]
1347pub use sp_debug_derive;
1348
1349/// Substrate externalities abstraction.
1350#[cfg(feature = "sp-externalities")]
1351pub use sp_externalities;
1352
1353/// Substrate RuntimeGenesisConfig builder API.
1354#[cfg(feature = "sp-genesis-builder")]
1355pub use sp_genesis_builder;
1356
1357/// Provides types and traits for creating and checking inherents.
1358#[cfg(feature = "sp-inherents")]
1359pub use sp_inherents;
1360
1361/// I/O for Substrate runtimes.
1362#[cfg(feature = "sp-io")]
1363pub use sp_io;
1364
1365/// Keyring support code for the runtime. A set of test accounts.
1366#[cfg(feature = "sp-keyring")]
1367pub use sp_keyring;
1368
1369/// Keystore primitives.
1370#[cfg(feature = "sp-keystore")]
1371pub use sp_keystore;
1372
1373/// Handling of blobs, usually Wasm code, which may be compressed.
1374#[cfg(feature = "sp-maybe-compressed-blob")]
1375pub use sp_maybe_compressed_blob;
1376
1377/// Intermediate representation of the runtime metadata.
1378#[cfg(feature = "sp-metadata-ir")]
1379pub use sp_metadata_ir;
1380
1381/// Substrate mixnet types and runtime interface.
1382#[cfg(feature = "sp-mixnet")]
1383pub use sp_mixnet;
1384
1385/// Merkle Mountain Range primitives.
1386#[cfg(feature = "sp-mmr-primitives")]
1387pub use sp_mmr_primitives;
1388
1389/// NPoS election algorithm primitives.
1390#[cfg(feature = "sp-npos-elections")]
1391pub use sp_npos_elections;
1392
1393/// Substrate offchain workers primitives.
1394#[cfg(feature = "sp-offchain")]
1395pub use sp_offchain;
1396
1397/// Custom panic hook with bug report link.
1398#[cfg(feature = "sp-panic-handler")]
1399pub use sp_panic_handler;
1400
1401/// Substrate RPC primitives and utilities.
1402#[cfg(feature = "sp-rpc")]
1403pub use sp_rpc;
1404
1405/// Runtime Modules shared primitive types.
1406#[cfg(feature = "sp-runtime")]
1407pub use sp_runtime;
1408
1409/// Substrate runtime interface.
1410#[cfg(feature = "sp-runtime-interface")]
1411pub use sp_runtime_interface;
1412
1413/// This crate provides procedural macros for usage within the context of the Substrate runtime
1414/// interface.
1415#[cfg(feature = "sp-runtime-interface-proc-macro")]
1416pub use sp_runtime_interface_proc_macro;
1417
1418/// Primitives for sessions.
1419#[cfg(feature = "sp-session")]
1420pub use sp_session;
1421
1422/// A crate which contains primitives that are useful for implementation that uses staking
1423/// approaches in general. Definitions related to sessions, slashing, etc go here.
1424#[cfg(feature = "sp-staking")]
1425pub use sp_staking;
1426
1427/// Substrate State Machine.
1428#[cfg(feature = "sp-state-machine")]
1429pub use sp_state_machine;
1430
1431/// A crate which contains primitives related to the statement store.
1432#[cfg(feature = "sp-statement-store")]
1433pub use sp_statement_store;
1434
1435/// Lowest-abstraction level for the Substrate runtime: just exports useful primitives from std
1436/// or client/alloc to be used with any code that depends on the runtime.
1437#[cfg(feature = "sp-std")]
1438pub use sp_std;
1439
1440/// Storage related primitives.
1441#[cfg(feature = "sp-storage")]
1442pub use sp_storage;
1443
1444/// Substrate core types and inherents for timestamps.
1445#[cfg(feature = "sp-timestamp")]
1446pub use sp_timestamp;
1447
1448/// Instrumentation primitives and macros for Substrate.
1449#[cfg(feature = "sp-tracing")]
1450pub use sp_tracing;
1451
1452/// Transaction pool runtime facing API.
1453#[cfg(feature = "sp-transaction-pool")]
1454pub use sp_transaction_pool;
1455
1456/// Transaction storage proof primitives.
1457#[cfg(feature = "sp-transaction-storage-proof")]
1458pub use sp_transaction_storage_proof;
1459
1460/// Patricia trie stuff using a parity-scale-codec node format.
1461#[cfg(feature = "sp-trie")]
1462pub use sp_trie;
1463
1464/// Version module for the Substrate runtime; Provides a function that returns the runtime
1465/// version.
1466#[cfg(feature = "sp-version")]
1467pub use sp_version;
1468
1469/// Macro for defining a runtime version.
1470#[cfg(feature = "sp-version-proc-macro")]
1471pub use sp_version_proc_macro;
1472
1473/// Types and traits for interfacing between the host and the wasm runtime.
1474#[cfg(feature = "sp-wasm-interface")]
1475pub use sp_wasm_interface;
1476
1477/// Types and traits for interfacing between the host and the wasm runtime.
1478#[cfg(feature = "sp-weights")]
1479pub use sp_weights;
1480
1481/// Utility for building chain-specification files for Substrate-based runtimes based on
1482/// `sp-genesis-builder`.
1483#[cfg(feature = "staging-chain-spec-builder")]
1484pub use staging_chain_spec_builder;
1485
1486/// Substrate node block inspection tool.
1487#[cfg(feature = "staging-node-inspect")]
1488pub use staging_node_inspect;
1489
1490/// Pallet to store the parachain ID.
1491#[cfg(feature = "staging-parachain-info")]
1492pub use staging_parachain_info;
1493
1494/// Tracking allocator to control the amount of memory consumed by the process.
1495#[cfg(feature = "staging-tracking-allocator")]
1496pub use staging_tracking_allocator;
1497
1498/// The basic XCM datastructures.
1499#[cfg(feature = "staging-xcm")]
1500pub use staging_xcm;
1501
1502/// Tools & types for building with XCM and its executor.
1503#[cfg(feature = "staging-xcm-builder")]
1504pub use staging_xcm_builder;
1505
1506/// An abstract and configurable XCM message executor.
1507#[cfg(feature = "staging-xcm-executor")]
1508pub use staging_xcm_executor;
1509
1510/// Generate and restore keys for Substrate based chains such as Polkadot, Kusama and a growing
1511/// number of parachains and Substrate based projects.
1512#[cfg(feature = "subkey")]
1513pub use subkey;
1514
1515/// Converting BIP39 entropy to valid Substrate (sr25519) SecretKeys.
1516#[cfg(feature = "substrate-bip39")]
1517pub use substrate_bip39;
1518
1519/// Crate with utility functions for `build.rs` scripts.
1520#[cfg(feature = "substrate-build-script-utils")]
1521pub use substrate_build_script_utils;
1522
1523/// Substrate RPC for FRAME's support.
1524#[cfg(feature = "substrate-frame-rpc-support")]
1525pub use substrate_frame_rpc_support;
1526
1527/// FRAME's system exposed over Substrate RPC.
1528#[cfg(feature = "substrate-frame-rpc-system")]
1529pub use substrate_frame_rpc_system;
1530
1531/// Endpoint to expose Prometheus metrics.
1532#[cfg(feature = "substrate-prometheus-endpoint")]
1533pub use substrate_prometheus_endpoint;
1534
1535/// Shared JSON-RPC client.
1536#[cfg(feature = "substrate-rpc-client")]
1537pub use substrate_rpc_client;
1538
1539/// Node-specific RPC methods for interaction with state trie migration.
1540#[cfg(feature = "substrate-state-trie-migration-rpc")]
1541pub use substrate_state_trie_migration_rpc;
1542
1543/// Utility for building WASM binaries.
1544#[cfg(feature = "substrate-wasm-builder")]
1545pub use substrate_wasm_builder;
1546
1547/// Common constants for Testnet Parachains runtimes.
1548#[cfg(feature = "testnet-parachains-constants")]
1549pub use testnet_parachains_constants;
1550
1551/// Stick logs together with the TraceID as provided by tempo.
1552#[cfg(feature = "tracing-gum")]
1553pub use tracing_gum;
1554
1555/// Generate an overseer including builder pattern and message wrapper from a single annotated
1556/// struct definition.
1557#[cfg(feature = "tracing-gum-proc-macro")]
1558pub use tracing_gum_proc_macro;
1559
1560/// Test kit to emulate XCM program execution.
1561#[cfg(feature = "xcm-emulator")]
1562pub use xcm_emulator;
1563
1564/// Procedural macros for XCM.
1565#[cfg(feature = "xcm-procedural")]
1566pub use xcm_procedural;
1567
1568/// XCM runtime APIs.
1569#[cfg(feature = "xcm-runtime-apis")]
1570pub use xcm_runtime_apis;
1571
1572/// Test kit to simulate cross-chain message passing and XCM execution.
1573#[cfg(feature = "xcm-simulator")]
1574pub use xcm_simulator;