Emit error when Config part is imported but without the std feature (#9225)
* Emit error when Config part is imported but without the std feature * Add UI test for missing std feature on GenesisConfig * Update frame/support/test/Cargo.toml Co-authored-by:Guillaume Thiolliere <gui.thiolliere@gmail.com> * Remove unused imports * Unify all dummy party checker macros * Fix * Dispaly pallet_path::GenesisConfig instead of PalletConfig in error message * Revert changes to construct_runtime_ui.rs * Add additional parameter for dummy part checker macro * Apply suggestions from code review * fix master merge: update version * update Cargo.lock Co-authored-by:
Guillaume Thiolliere <gui.thiolliere@gmail.com>
parent
1e8035a2
Showing
- substrate/Cargo.lock 10 additions, 0 deletionssubstrate/Cargo.lock
- substrate/frame/support/procedural/src/construct_runtime/expand/config.rs 4 additions, 1 deletion...support/procedural/src/construct_runtime/expand/config.rs
- substrate/frame/support/procedural/src/dummy_part_checker.rs 15 additions, 57 deletionssubstrate/frame/support/procedural/src/dummy_part_checker.rs
- substrate/frame/support/procedural/src/pallet/expand/genesis_config.rs 77 additions, 32 deletions...me/support/procedural/src/pallet/expand/genesis_config.rs
- substrate/frame/support/test/Cargo.toml 2 additions, 0 deletionssubstrate/frame/support/test/Cargo.toml
- substrate/frame/support/test/pallet/Cargo.toml 25 additions, 0 deletionssubstrate/frame/support/test/pallet/Cargo.toml
- substrate/frame/support/test/pallet/src/lib.rs 46 additions, 0 deletionssubstrate/frame/support/test/pallet/src/lib.rs
- substrate/frame/support/test/tests/construct_runtime_ui/no_std_genesis_config.rs 24 additions, 0 deletions.../test/tests/construct_runtime_ui/no_std_genesis_config.rs
- substrate/frame/support/test/tests/construct_runtime_ui/no_std_genesis_config.stderr 66 additions, 0 deletions...t/tests/construct_runtime_ui/no_std_genesis_config.stderr
Please register or sign in to comment