mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 21:01:05 +00:00
Move subxt-new to be the new subxt, and get first example working
This commit is contained in:
@@ -4,17 +4,12 @@
|
||||
|
||||
//! Subxt utils fetch metadata.
|
||||
|
||||
#![cfg_attr(docsrs, feature(doc_cfg))]
|
||||
|
||||
// Internal helper macros
|
||||
#[macro_use]
|
||||
mod macros;
|
||||
mod error;
|
||||
|
||||
cfg_fetch_from_url! {
|
||||
mod url;
|
||||
pub use url::{from_url, from_url_blocking, MetadataVersion, Url};
|
||||
}
|
||||
#[cfg(feature = "url")]
|
||||
mod url;
|
||||
#[cfg(feature = "url")]
|
||||
pub use url::{from_url, from_url_blocking, MetadataVersion, Url};
|
||||
|
||||
pub use error::Error;
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
// Copyright 2019-2024 Parity Technologies (UK) Ltd.
|
||||
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
|
||||
// see LICENSE for license details.
|
||||
|
||||
macro_rules! cfg_feature {
|
||||
($feature:literal, $($item:item)*) => {
|
||||
$(
|
||||
#[cfg(feature = $feature)]
|
||||
#[cfg_attr(docsrs, doc(cfg(feature = $feature)))]
|
||||
$item
|
||||
)*
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! cfg_fetch_from_url {
|
||||
($($item:item)*) => {
|
||||
crate::macros::cfg_feature!("url", $($item)*);
|
||||
};
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub(crate) use {cfg_feature, cfg_fetch_from_url};
|
||||
Reference in New Issue
Block a user