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