Skip to content
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
@gui1117

Description

@gui1117

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

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions