Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moves runtime macro out of experimental flag #4249

Merged
merged 4 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading