mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 18:07:58 +00:00
sp-api: Put frame-metadata behind some feature (#14398)
* sp-api: Put `frame-metadata` behind some feature Closes: https://github.com/paritytech/substrate/issues/14296 * ".git/.scripts/commands/fmt/fmt.sh" * Review feedback --------- Co-authored-by: command-bot <>
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
|
||||
use crate::{
|
||||
common::API_VERSION_ATTRIBUTE,
|
||||
runtime_metadata::generate_impl_runtime_metadata,
|
||||
utils::{
|
||||
extract_all_signature_types, extract_block_type_from_trait_path, extract_impl_trait,
|
||||
extract_parameter_names_types_and_borrows, generate_crate_access,
|
||||
@@ -694,7 +693,11 @@ fn impl_runtime_apis_impl_inner(api_impls: &[ItemImpl]) -> Result<TokenStream> {
|
||||
let runtime_api_versions = generate_runtime_api_versions(api_impls)?;
|
||||
let wasm_interface = generate_wasm_interface(api_impls)?;
|
||||
let api_impls_for_runtime_api = generate_api_impl_for_runtime_api(api_impls)?;
|
||||
let runtime_metadata = generate_impl_runtime_metadata(api_impls)?;
|
||||
|
||||
#[cfg(feature = "frame-metadata")]
|
||||
let runtime_metadata = crate::runtime_metadata::generate_impl_runtime_metadata(api_impls)?;
|
||||
#[cfg(not(feature = "frame-metadata"))]
|
||||
let runtime_metadata = quote!();
|
||||
|
||||
let impl_ = quote!(
|
||||
#base_runtime_api
|
||||
|
||||
Reference in New Issue
Block a user