1e46750ca1
- Update copyright from 'Parity Technologies (UK) Ltd.' to 'Dijital Kurdistan Tech Institute' - Update year to 2026 - Mark doc tests with relative metadata paths as 'ignore' to fix workspace-level doc tests - Affected files: runtime_apis.rs, storage.rs, constants.rs, transactions.rs, codegen.rs The doc tests use relative paths like '../artifacts/*.scale' which only work when testing the crate directly (-p pezkuwi-subxt), not during workspace-level tests. The examples/ directory contains the actual runnable test code.
23 lines
505 B
Rust
23 lines
505 B
Rust
// Copyright 2019-2026 Dijital Kurdistan Tech Institute
|
|
// 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};
|