Skip to main content

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 pallet for Dynamic Allocation Pool (DAP).
447#[cfg(feature = "pallet-dap")]
448pub use pallet_dap;
449
450/// FRAME pallet for DAP Satellite - collects funds for periodic transfer to DAP on AssetHub.
451#[cfg(feature = "pallet-dap-satellite")]
452pub use pallet_dap_satellite;
453
454/// FRAME delegated staking pallet.
455#[cfg(feature = "pallet-delegated-staking")]
456pub use pallet_delegated_staking;
457
458/// FRAME pallet for democracy.
459#[cfg(feature = "pallet-democracy")]
460pub use pallet_democracy;
461
462/// FRAME derivatives pallet.
463#[cfg(feature = "pallet-derivatives")]
464pub use pallet_derivatives;
465
466/// FRAME example pallet.
467#[cfg(feature = "pallet-dev-mode")]
468pub use pallet_dev_mode;
469
470/// Dummy DIM Pallet.
471#[cfg(feature = "pallet-dummy-dim")]
472pub use pallet_dummy_dim;
473
474/// PALLET multi phase+block election providers.
475#[cfg(feature = "pallet-election-provider-multi-block")]
476pub use pallet_election_provider_multi_block;
477
478/// PALLET two phase election providers.
479#[cfg(feature = "pallet-election-provider-multi-phase")]
480pub use pallet_election_provider_multi_phase;
481
482/// Benchmarking for election provider support onchain config trait.
483#[cfg(feature = "pallet-election-provider-support-benchmarking")]
484pub use pallet_election_provider_support_benchmarking;
485
486/// FRAME pallet based on seq-Phragmén election method.
487#[cfg(feature = "pallet-elections-phragmen")]
488pub use pallet_elections_phragmen;
489
490/// FRAME fast unstake pallet.
491#[cfg(feature = "pallet-fast-unstake")]
492pub use pallet_fast_unstake;
493
494/// FRAME pallet for pushing a chain to its weight limits.
495#[cfg(feature = "pallet-glutton")]
496pub use pallet_glutton;
497
498/// FRAME pallet for GRANDPA finality gadget.
499#[cfg(feature = "pallet-grandpa")]
500pub use pallet_grandpa;
501
502/// FRAME identity management pallet.
503#[cfg(feature = "pallet-identity")]
504pub use pallet_identity;
505
506/// FRAME's I'm online pallet.
507#[cfg(feature = "pallet-im-online")]
508pub use pallet_im_online;
509
510/// FRAME indices management pallet.
511#[cfg(feature = "pallet-indices")]
512pub use pallet_indices;
513
514/// Insecure do not use in production: FRAME randomness collective flip pallet.
515#[cfg(feature = "pallet-insecure-randomness-collective-flip")]
516pub use pallet_insecure_randomness_collective_flip;
517
518/// FRAME Participation Lottery Pallet.
519#[cfg(feature = "pallet-lottery")]
520pub use pallet_lottery;
521
522/// FRAME membership management pallet.
523#[cfg(feature = "pallet-membership")]
524pub use pallet_membership;
525
526/// FRAME pallet to queue and process messages.
527#[cfg(feature = "pallet-message-queue")]
528pub use pallet_message_queue;
529
530/// FRAME pallet enabling meta transactions.
531#[cfg(feature = "pallet-meta-tx")]
532pub use pallet_meta_tx;
533
534/// FRAME pallet to execute multi-block migrations.
535#[cfg(feature = "pallet-migrations")]
536pub use pallet_migrations;
537
538/// FRAME's mixnet pallet.
539#[cfg(feature = "pallet-mixnet")]
540pub use pallet_mixnet;
541
542/// FRAME Merkle Mountain Range pallet.
543#[cfg(feature = "pallet-mmr")]
544pub use pallet_mmr;
545
546/// FRAME pallet to manage multi-asset and cross-chain bounties.
547#[cfg(feature = "pallet-multi-asset-bounties")]
548pub use pallet_multi_asset_bounties;
549
550/// FRAME multi-signature dispatch pallet.
551#[cfg(feature = "pallet-multisig")]
552pub use pallet_multisig;
553
554/// FRAME pallet to convert non-fungible to fungible tokens.
555#[cfg(feature = "pallet-nft-fractionalization")]
556pub use pallet_nft_fractionalization;
557
558/// FRAME NFTs pallet.
559#[cfg(feature = "pallet-nfts")]
560pub use pallet_nfts;
561
562/// Runtime API for the FRAME NFTs pallet.
563#[cfg(feature = "pallet-nfts-runtime-api")]
564pub use pallet_nfts_runtime_api;
565
566/// FRAME pallet for rewarding account freezing.
567#[cfg(feature = "pallet-nis")]
568pub use pallet_nis;
569
570/// FRAME pallet for node authorization.
571#[cfg(feature = "pallet-node-authorization")]
572pub use pallet_node_authorization;
573
574/// FRAME nomination pools pallet.
575#[cfg(feature = "pallet-nomination-pools")]
576pub use pallet_nomination_pools;
577
578/// FRAME nomination pools pallet benchmarking.
579#[cfg(feature = "pallet-nomination-pools-benchmarking")]
580pub use pallet_nomination_pools_benchmarking;
581
582/// Runtime API for nomination-pools FRAME pallet.
583#[cfg(feature = "pallet-nomination-pools-runtime-api")]
584pub use pallet_nomination_pools_runtime_api;
585
586/// FRAME offences pallet.
587#[cfg(feature = "pallet-offences")]
588pub use pallet_offences;
589
590/// FRAME offences pallet benchmarking.
591#[cfg(feature = "pallet-offences-benchmarking")]
592pub use pallet_offences_benchmarking;
593
594/// FRAME oracle pallet for off-chain data.
595#[cfg(feature = "pallet-oracle")]
596pub use pallet_oracle;
597
598/// Runtime API for the oracle pallet.
599#[cfg(feature = "pallet-oracle-runtime-api")]
600pub use pallet_oracle_runtime_api;
601
602/// Pallet to give some execution allowance for some origins.
603#[cfg(feature = "pallet-origin-restriction")]
604pub use pallet_origin_restriction;
605
606/// FRAME pallet that provides a paged list data structure.
607#[cfg(feature = "pallet-paged-list")]
608pub use pallet_paged_list;
609
610/// Pallet to store and configure parameters.
611#[cfg(feature = "pallet-parameters")]
612pub use pallet_parameters;
613
614/// Personhood-tracking pallet.
615#[cfg(feature = "pallet-people")]
616pub use pallet_people;
617
618/// FRAME pallet for storing preimages of hashes.
619#[cfg(feature = "pallet-preimage")]
620pub use pallet_preimage;
621
622/// FRAME proxying pallet.
623#[cfg(feature = "pallet-proxy")]
624pub use pallet_proxy;
625
626/// Ranked collective system: Members of a set of account IDs can make their collective
627/// feelings known through dispatched calls from one of two specialized origins.
628#[cfg(feature = "pallet-ranked-collective")]
629pub use pallet_ranked_collective;
630
631/// FRAME account recovery pallet.
632#[cfg(feature = "pallet-recovery")]
633pub use pallet_recovery;
634
635/// FRAME pallet for inclusive on-chain decisions.
636#[cfg(feature = "pallet-referenda")]
637pub use pallet_referenda;
638
639/// Remark storage pallet.
640#[cfg(feature = "pallet-remark")]
641pub use pallet_remark;
642
643/// FRAME pallet for PolkaVM contracts.
644#[cfg(feature = "pallet-revive")]
645pub use pallet_revive;
646
647/// Procedural macros used in pallet_revive.
648#[cfg(feature = "pallet-revive-proc-macro")]
649pub use pallet_revive_proc_macro;
650
651/// Exposes all the host functions that a contract can import.
652#[cfg(feature = "pallet-revive-uapi")]
653pub use pallet_revive_uapi;
654
655/// FRAME root offences pallet.
656#[cfg(feature = "pallet-root-offences")]
657pub use pallet_root_offences;
658
659/// FRAME root testing pallet.
660#[cfg(feature = "pallet-root-testing")]
661pub use pallet_root_testing;
662
663/// FRAME safe-mode pallet.
664#[cfg(feature = "pallet-safe-mode")]
665pub use pallet_safe_mode;
666
667/// Paymaster.
668#[cfg(feature = "pallet-salary")]
669pub use pallet_salary;
670
671/// FRAME Scheduler pallet.
672#[cfg(feature = "pallet-scheduler")]
673pub use pallet_scheduler;
674
675/// FRAME pallet for scored pools.
676#[cfg(feature = "pallet-scored-pool")]
677pub use pallet_scored_pool;
678
679/// FRAME sessions pallet.
680#[cfg(feature = "pallet-session")]
681pub use pallet_session;
682
683/// FRAME sessions pallet benchmarking.
684#[cfg(feature = "pallet-session-benchmarking")]
685pub use pallet_session_benchmarking;
686
687/// Pallet to skip payments for calls annotated with `feeless_if` if the respective conditions
688/// are satisfied.
689#[cfg(feature = "pallet-skip-feeless-payment")]
690pub use pallet_skip_feeless_payment;
691
692/// FRAME society pallet.
693#[cfg(feature = "pallet-society")]
694pub use pallet_society;
695
696/// FRAME pallet staking.
697#[cfg(feature = "pallet-staking")]
698pub use pallet_staking;
699
700/// FRAME pallet staking async.
701#[cfg(feature = "pallet-staking-async")]
702pub use pallet_staking_async;
703
704/// Pallet handling the communication with staking-rc-client. It's role is to glue the staking
705/// pallet (on AssetHub chain) and session pallet (on Relay Chain) in a transparent way.
706#[cfg(feature = "pallet-staking-async-ah-client")]
707pub use pallet_staking_async_ah_client;
708
709/// Pallet handling the communication with staking-ah-client. It's role is to glue the staking
710/// pallet (on AssetHub chain) and session pallet (on Relay Chain) in a transparent way.
711#[cfg(feature = "pallet-staking-async-rc-client")]
712pub use pallet_staking_async_rc_client;
713
714/// RPC runtime API for transaction payment FRAME pallet.
715#[cfg(feature = "pallet-staking-async-runtime-api")]
716pub use pallet_staking_async_runtime_api;
717
718/// Reward Curve for FRAME staking pallet.
719#[cfg(feature = "pallet-staking-reward-curve")]
720pub use pallet_staking_reward_curve;
721
722/// Reward function for FRAME staking pallet.
723#[cfg(feature = "pallet-staking-reward-fn")]
724pub use pallet_staking_reward_fn;
725
726/// RPC runtime API for transaction payment FRAME pallet.
727#[cfg(feature = "pallet-staking-runtime-api")]
728pub use pallet_staking_runtime_api;
729
730/// FRAME pallet migration of trie.
731#[cfg(feature = "pallet-state-trie-migration")]
732pub use pallet_state_trie_migration;
733
734/// FRAME pallet for statement store.
735#[cfg(feature = "pallet-statement")]
736pub use pallet_statement;
737
738/// FRAME pallet for sudo.
739#[cfg(feature = "pallet-sudo")]
740pub use pallet_sudo;
741
742/// FRAME Timestamp Module.
743#[cfg(feature = "pallet-timestamp")]
744pub use pallet_timestamp;
745
746/// FRAME pallet to manage tips.
747#[cfg(feature = "pallet-tips")]
748pub use pallet_tips;
749
750/// FRAME pallet to manage transaction payments.
751#[cfg(feature = "pallet-transaction-payment")]
752pub use pallet_transaction_payment;
753
754/// RPC interface for the transaction payment pallet.
755#[cfg(feature = "pallet-transaction-payment-rpc")]
756pub use pallet_transaction_payment_rpc;
757
758/// RPC runtime API for transaction payment FRAME pallet.
759#[cfg(feature = "pallet-transaction-payment-rpc-runtime-api")]
760pub use pallet_transaction_payment_rpc_runtime_api;
761
762/// Storage chain pallet.
763#[cfg(feature = "pallet-transaction-storage")]
764pub use pallet_transaction_storage;
765
766/// FRAME pallet to manage treasury.
767#[cfg(feature = "pallet-treasury")]
768pub use pallet_treasury;
769
770/// FRAME transaction pause pallet.
771#[cfg(feature = "pallet-tx-pause")]
772pub use pallet_tx_pause;
773
774/// FRAME NFT asset management pallet.
775#[cfg(feature = "pallet-uniques")]
776pub use pallet_uniques;
777
778/// FRAME utilities pallet.
779#[cfg(feature = "pallet-utility")]
780pub use pallet_utility;
781
782/// FRAME verify signature pallet.
783#[cfg(feature = "pallet-verify-signature")]
784pub use pallet_verify_signature;
785
786/// FRAME pallet for manage vesting.
787#[cfg(feature = "pallet-vesting")]
788pub use pallet_vesting;
789
790/// FRAME pallet for whitelisting calls, and dispatching from a specific origin.
791#[cfg(feature = "pallet-whitelist")]
792pub use pallet_whitelist;
793
794/// A pallet for handling XCM programs.
795#[cfg(feature = "pallet-xcm")]
796pub use pallet_xcm;
797
798/// Benchmarks for the XCM pallet.
799#[cfg(feature = "pallet-xcm-benchmarks")]
800pub use pallet_xcm_benchmarks;
801
802/// Module that adds dynamic bridges/lanes support to XCM infrastructure at the bridge hub.
803#[cfg(feature = "pallet-xcm-bridge-hub")]
804pub use pallet_xcm_bridge_hub;
805
806/// Bridge hub interface for sibling/parent chains with dynamic fees support.
807#[cfg(feature = "pallet-xcm-bridge-hub-router")]
808pub use pallet_xcm_bridge_hub_router;
809
810/// Provides precompiles for `pallet-xcm`.
811#[cfg(feature = "pallet-xcm-precompiles")]
812pub use pallet_xcm_precompiles;
813
814/// Logic which is common to all parachain runtimes.
815#[cfg(feature = "parachains-common")]
816pub use parachains_common;
817
818/// Common types for parachains.
819#[cfg(feature = "parachains-common-types")]
820pub use parachains_common_types;
821
822/// Utils for Runtimes testing.
823#[cfg(feature = "parachains-runtimes-test-utils")]
824pub use parachains_runtimes_test_utils;
825
826/// Polkadot Approval Distribution subsystem for the distribution of assignments and approvals
827/// for approval checks on candidates over the network.
828#[cfg(feature = "polkadot-approval-distribution")]
829pub use polkadot_approval_distribution;
830
831/// Polkadot Bitfiled Distribution subsystem, which gossips signed availability bitfields used
832/// to compactly determine which backed candidates are available or not based on a 2/3+ quorum.
833#[cfg(feature = "polkadot-availability-bitfield-distribution")]
834pub use polkadot_availability_bitfield_distribution;
835
836/// The Availability Distribution subsystem. Requests the required availability data. Also
837/// distributes availability data and chunks to requesters.
838#[cfg(feature = "polkadot-availability-distribution")]
839pub use polkadot_availability_distribution;
840
841/// The Availability Recovery subsystem. Handles requests for recovering the availability data
842/// of included candidates.
843#[cfg(feature = "polkadot-availability-recovery")]
844pub use polkadot_availability_recovery;
845
846/// Polkadot Relay-chain Client Node.
847#[cfg(feature = "polkadot-cli")]
848pub use polkadot_cli;
849
850/// Polkadot Collator Protocol subsystem. Allows collators and validators to talk to each
851/// other.
852#[cfg(feature = "polkadot-collator-protocol")]
853pub use polkadot_collator_protocol;
854
855/// Core Polkadot types used by Relay Chains and parachains.
856#[cfg(feature = "polkadot-core-primitives")]
857pub use polkadot_core_primitives;
858
859/// Polkadot Dispute Distribution subsystem, which ensures all concerned validators are aware
860/// of a dispute and have the relevant votes.
861#[cfg(feature = "polkadot-dispute-distribution")]
862pub use polkadot_dispute_distribution;
863
864/// Erasure coding used for Polkadot's availability system.
865#[cfg(feature = "polkadot-erasure-coding")]
866pub use polkadot_erasure_coding;
867
868/// Polkadot Gossip Support subsystem. Responsible for keeping track of session changes and
869/// issuing a connection request to the relevant validators on every new session.
870#[cfg(feature = "polkadot-gossip-support")]
871pub use polkadot_gossip_support;
872
873/// The Network Bridge Subsystem — protocol multiplexer for Polkadot.
874#[cfg(feature = "polkadot-network-bridge")]
875pub use polkadot_network_bridge;
876
877/// Collator-side subsystem that handles incoming candidate submissions from the parachain.
878#[cfg(feature = "polkadot-node-collation-generation")]
879pub use polkadot_node_collation_generation;
880
881/// Approval Voting Subsystem of the Polkadot node.
882#[cfg(feature = "polkadot-node-core-approval-voting")]
883pub use polkadot_node_core_approval_voting;
884
885/// Approval Voting Subsystem running approval work in parallel.
886#[cfg(feature = "polkadot-node-core-approval-voting-parallel")]
887pub use polkadot_node_core_approval_voting_parallel;
888
889/// The Availability Store subsystem. Wrapper over the DB that stores availability data and
890/// chunks.
891#[cfg(feature = "polkadot-node-core-av-store")]
892pub use polkadot_node_core_av_store;
893
894/// The Candidate Backing Subsystem. Tracks parachain candidates that can be backed, as well as
895/// the issuance of statements about candidates.
896#[cfg(feature = "polkadot-node-core-backing")]
897pub use polkadot_node_core_backing;
898
899/// Bitfield signing subsystem for the Polkadot node.
900#[cfg(feature = "polkadot-node-core-bitfield-signing")]
901pub use polkadot_node_core_bitfield_signing;
902
903/// Polkadot crate that implements the Candidate Validation subsystem. Handles requests to
904/// validate candidates according to a PVF.
905#[cfg(feature = "polkadot-node-core-candidate-validation")]
906pub use polkadot_node_core_candidate_validation;
907
908/// The Chain API subsystem provides access to chain related utility functions like block
909/// number to hash conversions.
910#[cfg(feature = "polkadot-node-core-chain-api")]
911pub use polkadot_node_core_chain_api;
912
913/// Chain Selection Subsystem.
914#[cfg(feature = "polkadot-node-core-chain-selection")]
915pub use polkadot_node_core_chain_selection;
916
917/// The node-side components that participate in disputes.
918#[cfg(feature = "polkadot-node-core-dispute-coordinator")]
919pub use polkadot_node_core_dispute_coordinator;
920
921/// Parachains inherent data provider for Polkadot node.
922#[cfg(feature = "polkadot-node-core-parachains-inherent")]
923pub use polkadot_node_core_parachains_inherent;
924
925/// The Prospective Parachains subsystem. Tracks and handles prospective parachain fragments.
926#[cfg(feature = "polkadot-node-core-prospective-parachains")]
927pub use polkadot_node_core_prospective_parachains;
928
929/// Responsible for assembling a relay chain block from a set of available parachain
930/// candidates.
931#[cfg(feature = "polkadot-node-core-provisioner")]
932pub use polkadot_node_core_provisioner;
933
934/// Polkadot crate that implements the PVF validation host. Responsible for coordinating
935/// preparation and execution of PVFs.
936#[cfg(feature = "polkadot-node-core-pvf")]
937pub use polkadot_node_core_pvf;
938
939/// Polkadot crate that implements the PVF pre-checking subsystem. Responsible for checking and
940/// voting for PVFs that are pending approval.
941#[cfg(feature = "polkadot-node-core-pvf-checker")]
942pub use polkadot_node_core_pvf_checker;
943
944/// Polkadot crate that contains functionality related to PVFs that is shared by the PVF host
945/// and the PVF workers.
946#[cfg(feature = "polkadot-node-core-pvf-common")]
947pub use polkadot_node_core_pvf_common;
948
949/// Wrapper around the parachain-related runtime APIs.
950#[cfg(feature = "polkadot-node-core-runtime-api")]
951pub use polkadot_node_core_runtime_api;
952
953/// Subsystem metric helpers.
954#[cfg(feature = "polkadot-node-metrics")]
955pub use polkadot_node_metrics;
956
957/// Primitives types for the Node-side.
958#[cfg(feature = "polkadot-node-network-protocol")]
959pub use polkadot_node_network_protocol;
960
961/// Primitives types for the Node-side.
962#[cfg(feature = "polkadot-node-primitives")]
963pub use polkadot_node_primitives;
964
965/// Subsystem traits and message definitions and the generated overseer.
966#[cfg(feature = "polkadot-node-subsystem")]
967pub use polkadot_node_subsystem;
968
969/// Subsystem traits and message definitions.
970#[cfg(feature = "polkadot-node-subsystem-types")]
971pub use polkadot_node_subsystem_types;
972
973/// Subsystem traits and message definitions.
974#[cfg(feature = "polkadot-node-subsystem-util")]
975pub use polkadot_node_subsystem_util;
976
977/// Helper library that can be used to build a parachain node.
978#[cfg(feature = "polkadot-omni-node-lib")]
979pub use polkadot_omni_node_lib;
980
981/// System overseer of the Polkadot node.
982#[cfg(feature = "polkadot-overseer")]
983pub use polkadot_overseer;
984
985/// Types and utilities for creating and working with parachains.
986#[cfg(feature = "polkadot-parachain-primitives")]
987pub use polkadot_parachain_primitives;
988
989/// Shared primitives used by Polkadot runtime.
990#[cfg(feature = "polkadot-primitives")]
991pub use polkadot_primitives;
992
993/// Test helpers for Polkadot runtime primitives.
994#[cfg(feature = "polkadot-primitives-test-helpers")]
995pub use polkadot_primitives_test_helpers;
996
997/// Polkadot specific RPC functionality.
998#[cfg(feature = "polkadot-rpc")]
999pub use polkadot_rpc;
1000
1001/// Pallets and constants used in Relay Chain networks.
1002#[cfg(feature = "polkadot-runtime-common")]
1003pub use polkadot_runtime_common;
1004
1005/// Runtime metric interface for the Polkadot node.
1006#[cfg(feature = "polkadot-runtime-metrics")]
1007pub use polkadot_runtime_metrics;
1008
1009/// Relay Chain runtime code responsible for Parachains.
1010#[cfg(feature = "polkadot-runtime-parachains")]
1011pub use polkadot_runtime_parachains;
1012
1013/// The single package to get you started with building frame pallets and runtimes.
1014#[cfg(feature = "polkadot-sdk-frame")]
1015pub use polkadot_sdk_frame;
1016
1017/// Utils to tie different Polkadot components together and allow instantiation of a node.
1018#[cfg(feature = "polkadot-service")]
1019pub use polkadot_service;
1020
1021/// Statement Distribution Subsystem.
1022#[cfg(feature = "polkadot-statement-distribution")]
1023pub use polkadot_statement_distribution;
1024
1025/// Stores messages other authorities issue about candidates in Polkadot.
1026#[cfg(feature = "polkadot-statement-table")]
1027pub use polkadot_statement_table;
1028
1029/// Collection of allocator implementations.
1030#[cfg(feature = "sc-allocator")]
1031pub use sc_allocator;
1032
1033/// Substrate authority discovery.
1034#[cfg(feature = "sc-authority-discovery")]
1035pub use sc_authority_discovery;
1036
1037/// Basic implementation of block-authoring logic.
1038#[cfg(feature = "sc-basic-authorship")]
1039pub use sc_basic_authorship;
1040
1041/// Substrate block builder.
1042#[cfg(feature = "sc-block-builder")]
1043pub use sc_block_builder;
1044
1045/// Substrate chain configurations.
1046#[cfg(feature = "sc-chain-spec")]
1047pub use sc_chain_spec;
1048
1049/// Macros to derive chain spec extension traits implementation.
1050#[cfg(feature = "sc-chain-spec-derive")]
1051pub use sc_chain_spec_derive;
1052
1053/// Substrate CLI interface.
1054#[cfg(feature = "sc-cli")]
1055pub use sc_cli;
1056
1057/// Substrate client interfaces.
1058#[cfg(feature = "sc-client-api")]
1059pub use sc_client_api;
1060
1061/// Client backend that uses RocksDB database as storage.
1062#[cfg(feature = "sc-client-db")]
1063pub use sc_client_db;
1064
1065/// Collection of common consensus specific implementations for Substrate (client).
1066#[cfg(feature = "sc-consensus")]
1067pub use sc_consensus;
1068
1069/// Aura consensus algorithm for substrate.
1070#[cfg(feature = "sc-consensus-aura")]
1071pub use sc_consensus_aura;
1072
1073/// BABE consensus algorithm for substrate.
1074#[cfg(feature = "sc-consensus-babe")]
1075pub use sc_consensus_babe;
1076
1077/// RPC extensions for the BABE consensus algorithm.
1078#[cfg(feature = "sc-consensus-babe-rpc")]
1079pub use sc_consensus_babe_rpc;
1080
1081/// BEEFY Client gadget for substrate.
1082#[cfg(feature = "sc-consensus-beefy")]
1083pub use sc_consensus_beefy;
1084
1085/// RPC for the BEEFY Client gadget for substrate.
1086#[cfg(feature = "sc-consensus-beefy-rpc")]
1087pub use sc_consensus_beefy_rpc;
1088
1089/// Generic epochs-based utilities for consensus.
1090#[cfg(feature = "sc-consensus-epochs")]
1091pub use sc_consensus_epochs;
1092
1093/// Integration of the GRANDPA finality gadget into substrate.
1094#[cfg(feature = "sc-consensus-grandpa")]
1095pub use sc_consensus_grandpa;
1096
1097/// RPC extensions for the GRANDPA finality gadget.
1098#[cfg(feature = "sc-consensus-grandpa-rpc")]
1099pub use sc_consensus_grandpa_rpc;
1100
1101/// Manual sealing engine for Substrate.
1102#[cfg(feature = "sc-consensus-manual-seal")]
1103pub use sc_consensus_manual_seal;
1104
1105/// PoW consensus algorithm for substrate.
1106#[cfg(feature = "sc-consensus-pow")]
1107pub use sc_consensus_pow;
1108
1109/// Generic slots-based utilities for consensus.
1110#[cfg(feature = "sc-consensus-slots")]
1111pub use sc_consensus_slots;
1112
1113/// A crate that provides means of executing/dispatching calls into the runtime.
1114#[cfg(feature = "sc-executor")]
1115pub use sc_executor;
1116
1117/// A set of common definitions that are needed for defining execution engines.
1118#[cfg(feature = "sc-executor-common")]
1119pub use sc_executor_common;
1120
1121/// PolkaVM executor for Substrate.
1122#[cfg(feature = "sc-executor-polkavm")]
1123pub use sc_executor_polkavm;
1124
1125/// Defines a `WasmRuntime` that uses the Wasmtime JIT to execute.
1126#[cfg(feature = "sc-executor-wasmtime")]
1127pub use sc_executor_wasmtime;
1128
1129/// Substrate informant.
1130#[cfg(feature = "sc-informant")]
1131pub use sc_informant;
1132
1133/// Keystore (and session key management) for ed25519 based chains like Polkadot.
1134#[cfg(feature = "sc-keystore")]
1135pub use sc_keystore;
1136
1137/// Substrate mixnet service.
1138#[cfg(feature = "sc-mixnet")]
1139pub use sc_mixnet;
1140
1141/// Substrate network protocol.
1142#[cfg(feature = "sc-network")]
1143pub use sc_network;
1144
1145/// Substrate network common.
1146#[cfg(feature = "sc-network-common")]
1147pub use sc_network_common;
1148
1149/// Gossiping for the Substrate network protocol.
1150#[cfg(feature = "sc-network-gossip")]
1151pub use sc_network_gossip;
1152
1153/// Substrate light network protocol.
1154#[cfg(feature = "sc-network-light")]
1155pub use sc_network_light;
1156
1157/// Substrate statement protocol.
1158#[cfg(feature = "sc-network-statement")]
1159pub use sc_network_statement;
1160
1161/// Substrate sync network protocol.
1162#[cfg(feature = "sc-network-sync")]
1163pub use sc_network_sync;
1164
1165/// Substrate transaction protocol.
1166#[cfg(feature = "sc-network-transactions")]
1167pub use sc_network_transactions;
1168
1169/// Substrate network types.
1170#[cfg(feature = "sc-network-types")]
1171pub use sc_network_types;
1172
1173/// Substrate offchain workers.
1174#[cfg(feature = "sc-offchain")]
1175pub use sc_offchain;
1176
1177/// Basic metrics for block production.
1178#[cfg(feature = "sc-proposer-metrics")]
1179pub use sc_proposer_metrics;
1180
1181/// Substrate Client RPC.
1182#[cfg(feature = "sc-rpc")]
1183pub use sc_rpc;
1184
1185/// Substrate RPC interfaces.
1186#[cfg(feature = "sc-rpc-api")]
1187pub use sc_rpc_api;
1188
1189/// Substrate RPC servers.
1190#[cfg(feature = "sc-rpc-server")]
1191pub use sc_rpc_server;
1192
1193/// Substrate RPC interface v2.
1194#[cfg(feature = "sc-rpc-spec-v2")]
1195pub use sc_rpc_spec_v2;
1196
1197/// Substrate client utilities for frame runtime functions calls.
1198#[cfg(feature = "sc-runtime-utilities")]
1199pub use sc_runtime_utilities;
1200
1201/// Substrate service. Starts a thread that spins up the network, client, and extrinsic pool.
1202/// Manages communication between them.
1203#[cfg(feature = "sc-service")]
1204pub use sc_service;
1205
1206/// State database maintenance. Handles canonicalization and pruning in the database.
1207#[cfg(feature = "sc-state-db")]
1208pub use sc_state_db;
1209
1210/// Substrate statement store.
1211#[cfg(feature = "sc-statement-store")]
1212pub use sc_statement_store;
1213
1214/// Storage monitor service for substrate.
1215#[cfg(feature = "sc-storage-monitor")]
1216pub use sc_storage_monitor;
1217
1218/// A RPC handler to create sync states for light clients.
1219#[cfg(feature = "sc-sync-state-rpc")]
1220pub use sc_sync_state_rpc;
1221
1222/// A crate that provides basic hardware and software telemetry information.
1223#[cfg(feature = "sc-sysinfo")]
1224pub use sc_sysinfo;
1225
1226/// Telemetry utils.
1227#[cfg(feature = "sc-telemetry")]
1228pub use sc_telemetry;
1229
1230/// Instrumentation implementation for substrate.
1231#[cfg(feature = "sc-tracing")]
1232pub use sc_tracing;
1233
1234/// Helper macros for Substrate's client CLI.
1235#[cfg(feature = "sc-tracing-proc-macro")]
1236pub use sc_tracing_proc_macro;
1237
1238/// Substrate transaction pool implementation.
1239#[cfg(feature = "sc-transaction-pool")]
1240pub use sc_transaction_pool;
1241
1242/// Transaction pool client facing API.
1243#[cfg(feature = "sc-transaction-pool-api")]
1244pub use sc_transaction_pool_api;
1245
1246/// I/O for Substrate runtimes.
1247#[cfg(feature = "sc-utils")]
1248pub use sc_utils;
1249
1250/// Helper crate for generating slot ranges for the Polkadot runtime.
1251#[cfg(feature = "slot-range-helper")]
1252pub use slot_range_helper;
1253
1254/// Substrate runtime api primitives.
1255#[cfg(feature = "sp-api")]
1256pub use sp_api;
1257
1258/// Macros for declaring and implementing runtime apis.
1259#[cfg(feature = "sp-api-proc-macro")]
1260pub use sp_api_proc_macro;
1261
1262/// Provides facilities for generating application specific crypto wrapper types.
1263#[cfg(feature = "sp-application-crypto")]
1264pub use sp_application_crypto;
1265
1266/// Minimal fixed point arithmetic primitives and types for runtime.
1267#[cfg(feature = "sp-arithmetic")]
1268pub use sp_arithmetic;
1269
1270/// Authority discovery primitives.
1271#[cfg(feature = "sp-authority-discovery")]
1272pub use sp_authority_discovery;
1273
1274/// The block builder runtime api.
1275#[cfg(feature = "sp-block-builder")]
1276pub use sp_block_builder;
1277
1278/// Substrate blockchain traits and primitives.
1279#[cfg(feature = "sp-blockchain")]
1280pub use sp_blockchain;
1281
1282/// Common utilities for building and using consensus engines in substrate.
1283#[cfg(feature = "sp-consensus")]
1284pub use sp_consensus;
1285
1286/// Primitives for Aura consensus.
1287#[cfg(feature = "sp-consensus-aura")]
1288pub use sp_consensus_aura;
1289
1290/// Primitives for BABE consensus.
1291#[cfg(feature = "sp-consensus-babe")]
1292pub use sp_consensus_babe;
1293
1294/// Primitives for BEEFY protocol.
1295#[cfg(feature = "sp-consensus-beefy")]
1296pub use sp_consensus_beefy;
1297
1298/// Primitives for GRANDPA integration, suitable for WASM compilation.
1299#[cfg(feature = "sp-consensus-grandpa")]
1300pub use sp_consensus_grandpa;
1301
1302/// Primitives for Aura consensus.
1303#[cfg(feature = "sp-consensus-pow")]
1304pub use sp_consensus_pow;
1305
1306/// Primitives for slots-based consensus.
1307#[cfg(feature = "sp-consensus-slots")]
1308pub use sp_consensus_slots;
1309
1310/// Shareable Substrate types.
1311#[cfg(feature = "sp-core")]
1312pub use sp_core;
1313
1314/// Hashing primitives (deprecated: use sp-crypto-hashing for new applications).
1315#[cfg(feature = "sp-core-hashing")]
1316pub use sp_core_hashing;
1317
1318/// Procedural macros for calculating static hashes (deprecated in favor of
1319/// `sp-crypto-hashing-proc-macro`).
1320#[cfg(feature = "sp-core-hashing-proc-macro")]
1321pub use sp_core_hashing_proc_macro;
1322
1323/// Host functions for common Arkworks elliptic curve operations.
1324#[cfg(feature = "sp-crypto-ec-utils")]
1325pub use sp_crypto_ec_utils;
1326
1327/// Hashing primitives.
1328#[cfg(feature = "sp-crypto-hashing")]
1329pub use sp_crypto_hashing;
1330
1331/// Procedural macros for calculating static hashes.
1332#[cfg(feature = "sp-crypto-hashing-proc-macro")]
1333pub use sp_crypto_hashing_proc_macro;
1334
1335/// Substrate database trait.
1336#[cfg(feature = "sp-database")]
1337pub use sp_database;
1338
1339/// Macros to derive runtime debug implementation.
1340#[cfg(feature = "sp-debug-derive")]
1341pub use sp_debug_derive;
1342
1343/// Substrate externalities abstraction.
1344#[cfg(feature = "sp-externalities")]
1345pub use sp_externalities;
1346
1347/// Substrate RuntimeGenesisConfig builder API.
1348#[cfg(feature = "sp-genesis-builder")]
1349pub use sp_genesis_builder;
1350
1351/// Provides types and traits for creating and checking inherents.
1352#[cfg(feature = "sp-inherents")]
1353pub use sp_inherents;
1354
1355/// I/O for Substrate runtimes.
1356#[cfg(feature = "sp-io")]
1357pub use sp_io;
1358
1359/// Keyring support code for the runtime. A set of test accounts.
1360#[cfg(feature = "sp-keyring")]
1361pub use sp_keyring;
1362
1363/// Keystore primitives.
1364#[cfg(feature = "sp-keystore")]
1365pub use sp_keystore;
1366
1367/// Handling of blobs, usually Wasm code, which may be compressed.
1368#[cfg(feature = "sp-maybe-compressed-blob")]
1369pub use sp_maybe_compressed_blob;
1370
1371/// Intermediate representation of the runtime metadata.
1372#[cfg(feature = "sp-metadata-ir")]
1373pub use sp_metadata_ir;
1374
1375/// Substrate mixnet types and runtime interface.
1376#[cfg(feature = "sp-mixnet")]
1377pub use sp_mixnet;
1378
1379/// Merkle Mountain Range primitives.
1380#[cfg(feature = "sp-mmr-primitives")]
1381pub use sp_mmr_primitives;
1382
1383/// NPoS election algorithm primitives.
1384#[cfg(feature = "sp-npos-elections")]
1385pub use sp_npos_elections;
1386
1387/// Substrate offchain workers primitives.
1388#[cfg(feature = "sp-offchain")]
1389pub use sp_offchain;
1390
1391/// Custom panic hook with bug report link.
1392#[cfg(feature = "sp-panic-handler")]
1393pub use sp_panic_handler;
1394
1395/// Substrate RPC primitives and utilities.
1396#[cfg(feature = "sp-rpc")]
1397pub use sp_rpc;
1398
1399/// Runtime Modules shared primitive types.
1400#[cfg(feature = "sp-runtime")]
1401pub use sp_runtime;
1402
1403/// Substrate runtime interface.
1404#[cfg(feature = "sp-runtime-interface")]
1405pub use sp_runtime_interface;
1406
1407/// This crate provides procedural macros for usage within the context of the Substrate runtime
1408/// interface.
1409#[cfg(feature = "sp-runtime-interface-proc-macro")]
1410pub use sp_runtime_interface_proc_macro;
1411
1412/// Primitives for sessions.
1413#[cfg(feature = "sp-session")]
1414pub use sp_session;
1415
1416/// A crate which contains primitives that are useful for implementation that uses staking
1417/// approaches in general. Definitions related to sessions, slashing, etc go here.
1418#[cfg(feature = "sp-staking")]
1419pub use sp_staking;
1420
1421/// Substrate State Machine.
1422#[cfg(feature = "sp-state-machine")]
1423pub use sp_state_machine;
1424
1425/// A crate which contains primitives related to the statement store.
1426#[cfg(feature = "sp-statement-store")]
1427pub use sp_statement_store;
1428
1429/// Lowest-abstraction level for the Substrate runtime: just exports useful primitives from std
1430/// or client/alloc to be used with any code that depends on the runtime.
1431#[cfg(feature = "sp-std")]
1432pub use sp_std;
1433
1434/// Storage related primitives.
1435#[cfg(feature = "sp-storage")]
1436pub use sp_storage;
1437
1438/// Substrate core types and inherents for timestamps.
1439#[cfg(feature = "sp-timestamp")]
1440pub use sp_timestamp;
1441
1442/// Instrumentation primitives and macros for Substrate.
1443#[cfg(feature = "sp-tracing")]
1444pub use sp_tracing;
1445
1446/// Transaction pool runtime facing API.
1447#[cfg(feature = "sp-transaction-pool")]
1448pub use sp_transaction_pool;
1449
1450/// Transaction storage proof primitives.
1451#[cfg(feature = "sp-transaction-storage-proof")]
1452pub use sp_transaction_storage_proof;
1453
1454/// Patricia trie stuff using a parity-scale-codec node format.
1455#[cfg(feature = "sp-trie")]
1456pub use sp_trie;
1457
1458/// Version module for the Substrate runtime; Provides a function that returns the runtime
1459/// version.
1460#[cfg(feature = "sp-version")]
1461pub use sp_version;
1462
1463/// Macro for defining a runtime version.
1464#[cfg(feature = "sp-version-proc-macro")]
1465pub use sp_version_proc_macro;
1466
1467/// Types and traits for interfacing between the host and the wasm runtime.
1468#[cfg(feature = "sp-wasm-interface")]
1469pub use sp_wasm_interface;
1470
1471/// Types and traits for interfacing between the host and the wasm runtime.
1472#[cfg(feature = "sp-weights")]
1473pub use sp_weights;
1474
1475/// Utility for building chain-specification files for Substrate-based runtimes based on
1476/// `sp-genesis-builder`.
1477#[cfg(feature = "staging-chain-spec-builder")]
1478pub use staging_chain_spec_builder;
1479
1480/// Substrate node block inspection tool.
1481#[cfg(feature = "staging-node-inspect")]
1482pub use staging_node_inspect;
1483
1484/// Pallet to store the parachain ID.
1485#[cfg(feature = "staging-parachain-info")]
1486pub use staging_parachain_info;
1487
1488/// Tracking allocator to control the amount of memory consumed by the process.
1489#[cfg(feature = "staging-tracking-allocator")]
1490pub use staging_tracking_allocator;
1491
1492/// The basic XCM datastructures.
1493#[cfg(feature = "staging-xcm")]
1494pub use staging_xcm;
1495
1496/// Tools & types for building with XCM and its executor.
1497#[cfg(feature = "staging-xcm-builder")]
1498pub use staging_xcm_builder;
1499
1500/// An abstract and configurable XCM message executor.
1501#[cfg(feature = "staging-xcm-executor")]
1502pub use staging_xcm_executor;
1503
1504/// Generate and restore keys for Substrate based chains such as Polkadot, Kusama and a growing
1505/// number of parachains and Substrate based projects.
1506#[cfg(feature = "subkey")]
1507pub use subkey;
1508
1509/// Converting BIP39 entropy to valid Substrate (sr25519) SecretKeys.
1510#[cfg(feature = "substrate-bip39")]
1511pub use substrate_bip39;
1512
1513/// Crate with utility functions for `build.rs` scripts.
1514#[cfg(feature = "substrate-build-script-utils")]
1515pub use substrate_build_script_utils;
1516
1517/// Substrate RPC for FRAME's support.
1518#[cfg(feature = "substrate-frame-rpc-support")]
1519pub use substrate_frame_rpc_support;
1520
1521/// FRAME's system exposed over Substrate RPC.
1522#[cfg(feature = "substrate-frame-rpc-system")]
1523pub use substrate_frame_rpc_system;
1524
1525/// Endpoint to expose Prometheus metrics.
1526#[cfg(feature = "substrate-prometheus-endpoint")]
1527pub use substrate_prometheus_endpoint;
1528
1529/// Shared JSON-RPC client.
1530#[cfg(feature = "substrate-rpc-client")]
1531pub use substrate_rpc_client;
1532
1533/// Node-specific RPC methods for interaction with state trie migration.
1534#[cfg(feature = "substrate-state-trie-migration-rpc")]
1535pub use substrate_state_trie_migration_rpc;
1536
1537/// Utility for building WASM binaries.
1538#[cfg(feature = "substrate-wasm-builder")]
1539pub use substrate_wasm_builder;
1540
1541/// Common constants for Testnet Parachains runtimes.
1542#[cfg(feature = "testnet-parachains-constants")]
1543pub use testnet_parachains_constants;
1544
1545/// Stick logs together with the TraceID as provided by tempo.
1546#[cfg(feature = "tracing-gum")]
1547pub use tracing_gum;
1548
1549/// Generate an overseer including builder pattern and message wrapper from a single annotated
1550/// struct definition.
1551#[cfg(feature = "tracing-gum-proc-macro")]
1552pub use tracing_gum_proc_macro;
1553
1554/// Test kit to emulate XCM program execution.
1555#[cfg(feature = "xcm-emulator")]
1556pub use xcm_emulator;
1557
1558/// Procedural macros for XCM.
1559#[cfg(feature = "xcm-procedural")]
1560pub use xcm_procedural;
1561
1562/// XCM runtime APIs.
1563#[cfg(feature = "xcm-runtime-apis")]
1564pub use xcm_runtime_apis;
1565
1566/// Test kit to simulate cross-chain message passing and XCM execution.
1567#[cfg(feature = "xcm-simulator")]
1568pub use xcm_simulator;