mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 11:07:56 +00:00
4185a213ac
* 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>
13 lines
171 B
Rust
13 lines
171 B
Rust
use sp_runtime_interface::runtime_interface;
|
|
|
|
#[runtime_interface]
|
|
trait Test {
|
|
fn foo() {}
|
|
|
|
#[version(2)]
|
|
#[cfg(feature = "foo-feature")]
|
|
fn foo() {}
|
|
}
|
|
|
|
fn main() {}
|