mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 07:01:05 +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)]
|
||||
|
||||
@@ -13,6 +13,6 @@ serde_json = "1"
|
||||
futures-util = "0.3.30"
|
||||
|
||||
# This crate is not a part of the workspace, because it
|
||||
# requires the "jsonrpsee web unstable-light-client" features to be enabled, which we don't
|
||||
# requires the "jsonrpsee web light-client" features to be enabled, which we don't
|
||||
# want enabled for workspace builds in general.
|
||||
subxt = { path = "../../subxt", default-features = false, features = ["web", "jsonrpsee", "unstable-light-client"] }
|
||||
subxt = { path = "../../subxt", default-features = false, features = ["web", "jsonrpsee", "light-client"] }
|
||||
|
||||
Reference in New Issue
Block a user