mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 20:27:58 +00:00
4ef1d0df02
* sp-api: Support expanding the macro code This pr introduces the `expander` crate to expand the generated source code into a file. This gives better error reporting when trying to fix issues in the macro itself as Rustc will point to the line in this file. The feature can be enabled by setting `SP_API_EXPAND=1` at compile time. Besides that the generated code is changed to fix warnings in the exanped version. * Fixes
15 lines
594 B
Plaintext
15 lines
594 B
Plaintext
error[E0433]: failed to resolve: could not find `ApiV4` in `runtime_decl_for_api`
|
|
--> tests/ui/impl_missing_version.rs:21:13
|
|
|
|
|
21 | impl self::Api<Block> for Runtime {
|
|
| ^^^ could not find `ApiV4` in `runtime_decl_for_api`
|
|
|
|
error[E0405]: cannot find trait `ApiV4` in module `self::runtime_decl_for_api`
|
|
--> tests/ui/impl_missing_version.rs:21:13
|
|
|
|
|
11 | pub trait Api {
|
|
| ------------- similarly named trait `ApiV2` defined here
|
|
...
|
|
21 | impl self::Api<Block> for Runtime {
|
|
| ^^^ help: a trait with a similar name exists: `ApiV2`
|