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.

Allow to use path in construct_runtime. #8085

Closed
@gui1117

Description

@gui1117

Currently construct_runtime only allows to have an identifier for the path of the pallet, this result in code like this:

use pallet_session::historical as pallet_session_historical;
construct_runtime!(
	...
	Historical: pallet_session_historical::{Module},
);

instead we should be able to do stuff like this:

construct_runtime!(
	...
	Historical: pallet_session::historical::{Module},
);

Maybe impl_outer_* should be reimplemented in procedural macro so that this issue is easier to do.
Or we can make construct_runtime note using them and instead use its own code (which shouldn't be a lot of code actually, but would be great to share code generation for stuff like impl_outer_inherent).
Or maybe we can just handle path in impl_outer_* but this is probably tricky and doesn't worth the pain.

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.Z2-mediumCan be fixed by a coder with good Rust knowledge but little knowledge of the codebase.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions