Support for `cfg` attributes in host functions definitions (#14189)
* Support cfg attribute in host functions definitions * Added test to check feature gated methods are not included * Versioned conditional compiled host function are forbidden * Improve runtime-interface macro docs * Fix doc * Apply review suggestion Co-authored-by:Koute <koute@users.noreply.github.com> * Better error message * Rust fmt * More refinements to the docs --------- Co-authored-by:
Koute <koute@users.noreply.github.com>
Showing
- substrate/primitives/runtime-interface/proc-macro/src/runtime_interface/host_function_interface.rs 31 additions, 6 deletions...oc-macro/src/runtime_interface/host_function_interface.rs
- substrate/primitives/runtime-interface/src/lib.rs 61 additions, 15 deletionssubstrate/primitives/runtime-interface/src/lib.rs
- substrate/primitives/runtime-interface/tests/ui/no_feature_gated_method.rs 18 additions, 0 deletions...ves/runtime-interface/tests/ui/no_feature_gated_method.rs
- substrate/primitives/runtime-interface/tests/ui/no_feature_gated_method.stderr 5 additions, 0 deletions...runtime-interface/tests/ui/no_feature_gated_method.stderr
- substrate/primitives/runtime-interface/tests/ui/no_versioned_conditional_build.rs 12 additions, 0 deletions...time-interface/tests/ui/no_versioned_conditional_build.rs
- substrate/primitives/runtime-interface/tests/ui/no_versioned_conditional_build.stderr 5 additions, 0 deletions...-interface/tests/ui/no_versioned_conditional_build.stderr
Please register or sign in to comment