mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 01:41:03 +00:00
More exampels and ensure light client things work. Remove unstable from unstable-light-client
This commit is contained in:
@@ -16,10 +16,10 @@ description = "Subxt integration tests that rely on the Substrate binary"
|
||||
default = []
|
||||
|
||||
# Enable to run the tests with Light Client support.
|
||||
unstable-light-client = ["subxt/unstable-light-client"]
|
||||
light-client = ["subxt/light-client"]
|
||||
|
||||
# Enable to run the full-client tests with Light Client support.
|
||||
unstable-light-client-long-running = ["subxt/unstable-light-client"]
|
||||
light-client-long-running = ["subxt/light-client"]
|
||||
|
||||
# Enable this to use the chainhead backend in tests _instead of_
|
||||
# the default one which relies on the "old" RPC methods.
|
||||
|
||||
@@ -3,8 +3,8 @@ use cfg_aliases::cfg_aliases;
|
||||
fn main() {
|
||||
// Setup cfg aliases
|
||||
cfg_aliases! {
|
||||
lightclient: { any(feature = "unstable-light-client", feature = "unstable-light-client-long-running") },
|
||||
fullclient: { all(not(feature = "unstable-light-client"), not(feature = "unstable-light-client-long-running")) },
|
||||
lightclient: { any(feature = "light-client", feature = "light-client-long-running") },
|
||||
fullclient: { all(not(feature = "light-client"), not(feature = "light-client-long-running")) },
|
||||
legacy_backend: { not(feature = "chainhead-backend") },
|
||||
chainhead_backend: { feature = "chainhead-backend" },
|
||||
}
|
||||
|
||||
@@ -2,10 +2,8 @@
|
||||
// This file is dual-licensed as Apache-2.0 or GPL-3.0.
|
||||
// see LICENSE for license details.
|
||||
|
||||
#[cfg(all(feature = "unstable-light-client", feature = "chainhead-backend"))]
|
||||
compile_error!(
|
||||
"The features 'unstable-light-client' and 'chainhead-backend' cannot be used together"
|
||||
);
|
||||
#[cfg(all(feature = "light-client", feature = "chainhead-backend"))]
|
||||
compile_error!("The features 'light-client' and 'chainhead-backend' cannot be used together");
|
||||
|
||||
#[cfg(test)]
|
||||
pub mod utils;
|
||||
@@ -15,12 +13,12 @@ pub mod utils;
|
||||
use utils::*;
|
||||
|
||||
#[cfg(any(
|
||||
all(test, not(feature = "unstable-light-client")),
|
||||
all(test, feature = "unstable-light-client-long-running")
|
||||
all(test, not(feature = "light-client")),
|
||||
all(test, feature = "light-client-long-running")
|
||||
))]
|
||||
mod full_client;
|
||||
|
||||
#[cfg(all(test, feature = "unstable-light-client"))]
|
||||
#[cfg(all(test, feature = "light-client"))]
|
||||
mod light_client;
|
||||
|
||||
#[cfg(test)]
|
||||
|
||||
Reference in New Issue
Block a user