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