Refactor `construct_runtime` to procedural (#3810)
* interim * interim * interim * first working section * cleanup * finished parsing * cleanup * added system module search * added clone and find_entry * generic find_module_entry * interim * working event * added generic event with no instance error * cleanup * added decl origin * cleanup * added all modules * added outer dispatch * added modules expansion * refactored transformations * updated error message * added resolve mechanics * added metadata * finished config * finished inherents * added validate_unsigned * added compares * cleanup * cleanup * cleanup * fix * updated modules for last one wins * cleanup * made nested modules * updated impl version * removed comment * cleanup * added ui tests * added optional comma * removed unnecessary to string cast * removed no compile * cleanup * fmt * returned nocompile * Update srml/support/procedural/src/construct_runtime/parse.rs Co-Authored-By:thiolliere <gui.thiolliere@gmail.com> * added where definition * updated ui tests * updated ui test cases * added test case * updated tests * interim * added parse for module part * removed totokens * fixes * fixed multiple iter * changed TokenStream * fmt * updated trybuild * added test for arguments * fmt * fixes + more tests * fixes * fmt * rolled back runtime * minor fixes * empty * fixes * fmt * Update paint/support/procedural/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update paint/support/procedural/src/lib.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * Update paint/support/procedural/src/construct_runtime/parse.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * interim * refactored seen_keys * refactored hash_set * Update paint/support/procedural/src/construct_runtime/mod.rs Co-Authored-By:
Bastian Köcher <bkchr@users.noreply.github.com> * refactored find * fix * fixed all_modules * added double declaration check * small fix * fmt * fix * fix default * format
Showing
- substrate/bin/node-template/runtime/src/lib.rs 1 addition, 1 deletionsubstrate/bin/node-template/runtime/src/lib.rs
- substrate/bin/node/runtime/src/lib.rs 1 addition, 1 deletionsubstrate/bin/node/runtime/src/lib.rs
- substrate/frame/support/procedural/src/construct_runtime/mod.rs 350 additions, 0 deletions...ate/frame/support/procedural/src/construct_runtime/mod.rs
- substrate/frame/support/procedural/src/construct_runtime/parse.rs 401 additions, 0 deletions...e/frame/support/procedural/src/construct_runtime/parse.rs
- substrate/frame/support/procedural/src/lib.rs 61 additions, 0 deletionssubstrate/frame/support/procedural/src/lib.rs
- substrate/frame/support/procedural/tools/src/syn_ext.rs 21 additions, 2 deletionssubstrate/frame/support/procedural/tools/src/syn_ext.rs
- substrate/frame/support/src/lib.rs 1 addition, 3 deletionssubstrate/frame/support/src/lib.rs
- substrate/frame/support/src/runtime.rs 0 additions, 948 deletionssubstrate/frame/support/src/runtime.rs
- substrate/frame/support/test/tests/construct_runtime_ui.rs 10 additions, 0 deletionssubstrate/frame/support/test/tests/construct_runtime_ui.rs
- substrate/frame/support/test/tests/construct_runtime_ui/abundant_where_param.rs 12 additions, 0 deletions...t/test/tests/construct_runtime_ui/abundant_where_param.rs
- substrate/frame/support/test/tests/construct_runtime_ui/abundant_where_param.stderr 5 additions, 0 deletions...st/tests/construct_runtime_ui/abundant_where_param.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/double_module_parts.rs 14 additions, 0 deletions...rt/test/tests/construct_runtime_ui/double_module_parts.rs
- substrate/frame/support/test/tests/construct_runtime_ui/double_module_parts.stderr 5 additions, 0 deletions...est/tests/construct_runtime_ui/double_module_parts.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/double_module_parts_default.rs 14 additions, 0 deletions...tests/construct_runtime_ui/double_module_parts_default.rs
- substrate/frame/support/test/tests/construct_runtime_ui/double_module_parts_default.stderr 5 additions, 0 deletions...s/construct_runtime_ui/double_module_parts_default.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/generics_in_invalid_module.rs 14 additions, 0 deletions.../tests/construct_runtime_ui/generics_in_invalid_module.rs
- substrate/frame/support/test/tests/construct_runtime_ui/generics_in_invalid_module.stderr 5 additions, 0 deletions...ts/construct_runtime_ui/generics_in_invalid_module.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_details.rs 13 additions, 0 deletions...test/tests/construct_runtime_ui/invalid_module_details.rs
- substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_details.stderr 5 additions, 0 deletions.../tests/construct_runtime_ui/invalid_module_details.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_details_keyword.rs 13 additions, 0 deletions...ts/construct_runtime_ui/invalid_module_details_keyword.rs
Please register or sign in to comment