This repository was archived by the owner on Nov 15, 2023. It is now read-only.
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Move support macros to attribute procedural macros #5678
Closed
Description
This issue is about moving decl_* to one simple module with attribute macro, inspired by ink macros.
goal is readability, understandability and IDE support, I test with rust-analyzer on vscode.
the idea is to have something like
#[frame_support::pallet(Example)]
pub mod pallet {
#[pallet::trait_]
pub trait Trait: frame_system::Trait {
#[pallet::const_]
type MyGetParam: Get<u32>;
}
#[pallet::module]
pub struct Module<T, I>(core::marker::PhantomData<T, I>);
.....
}
Precise design should now be discussed in the PR #6877