mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-27 18:37:59 +00:00
sp-api: Support expanding the macro code (#13573)
* 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
This commit is contained in:
@@ -18,9 +18,6 @@
|
||||
/// The ident used for the block generic parameter.
|
||||
pub const BLOCK_GENERIC_IDENT: &str = "Block";
|
||||
|
||||
/// Unique identifier used to make the hidden includes unique for this macro.
|
||||
pub const HIDDEN_INCLUDES_ID: &str = "DECL_RUNTIME_APIS";
|
||||
|
||||
/// The `core_trait` attribute.
|
||||
pub const CORE_TRAIT_ATTRIBUTE: &str = "core_trait";
|
||||
/// The `api_version` attribute.
|
||||
|
||||
Reference in New Issue
Block a user