Move subxt-new to be the new subxt, and get first example working

This commit is contained in:
James Wilson
2025-12-11 17:44:18 +00:00
parent 15a7534a55
commit 02d0c12019
279 changed files with 1169 additions and 28576 deletions
+4 -9
View File
@@ -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;
-22
View File
@@ -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};