Skip to content

Commit

Permalink
Moves runtime macro out of experimental flag (paritytech#4249)
Browse files Browse the repository at this point in the history
Step in paritytech#3688

Now that the `runtime` macro (Construct Runtime V2) has been
successfully deployed on Westend, this PR moves it out of the
experimental feature flag and makes it generally available for runtime
devs.

---------

Co-authored-by: Bastian Köcher <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
  • Loading branch information
3 people authored and hitchhooker committed Jun 5, 2024
1 parent 37bb5db commit ccdc5ca
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
17 changes: 17 additions & 0 deletions prdoc/pr_4249.prdoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Schema: Polkadot SDK PRDoc Schema (prdoc) v1.0.0
# See doc at https://raw.githubusercontent.com/paritytech/polkadot-sdk/master/prdoc/schema_user.json

title: Moves runtime macro out of experimental flag

doc:
- audience: Runtime Dev
description: |
Now that the runtime macro (Construct Runtime V2) has been successfully deployed on Westend,
this PR moves it out of the experimental feature flag and makes it generally available for
runtime devs.

crates:
- name: frame-support
bump: minor
- name: frame-support-procedural
bump: minor
1 change: 0 additions & 1 deletion substrate/frame/support/procedural/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1249,7 +1249,6 @@ pub fn import_section(attr: TokenStream, tokens: TokenStream) -> TokenStream {
///
/// * The macro generates a type alias for each pallet to their `Pallet`. E.g. `type System =
/// frame_system::Pallet<Runtime>`
#[cfg(feature = "experimental")]
#[proc_macro_attribute]
pub fn runtime(attr: TokenStream, item: TokenStream) -> TokenStream {
runtime::runtime(attr, item)
Expand Down
2 changes: 0 additions & 2 deletions substrate/frame/support/procedural/src/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,6 @@
//! +----------------------+
//! ```
#![cfg(feature = "experimental")]

pub use parse::Def;
use proc_macro::TokenStream;
use syn::spanned::Spanned;
Expand Down
1 change: 0 additions & 1 deletion substrate/frame/support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,6 @@ pub use frame_support_procedural::{
construct_runtime, match_and_insert, transactional, PalletError, RuntimeDebugNoBound,
};

#[cfg(feature = "experimental")]
pub use frame_support_procedural::runtime;

#[doc(hidden)]
Expand Down

0 comments on commit ccdc5ca

Please sign in to comment.