diff --git a/examples/Cargo.toml b/examples/Cargo.toml index 79b1615d88..f204f605a0 100644 --- a/examples/Cargo.toml +++ b/examples/Cargo.toml @@ -13,7 +13,7 @@ homepage.workspace = true description = "Subxt example usage" [dev-dependencies] -subxt = { workspace = true, default-features = false, features = ["default", "experimental-light-client"]} +subxt = { workspace = true, default-features = false, features = ["default", "unstable-light-client"]} tokio = { workspace = true } futures = { workspace = true } hex = { workspace = true } diff --git a/subxt/Cargo.toml b/subxt/Cargo.toml index a85a52b681..1120d9e950 100644 --- a/subxt/Cargo.toml +++ b/subxt/Cargo.toml @@ -42,7 +42,7 @@ unstable-metadata = [] # Activate this to expose the Light Client functionality. # Note that this feature is experimental and things may break or not work as expected. -experimental-light-client = [ +unstable-light-client = [ "smoldot-light/std", "tokio-stream", "tokio/sync", diff --git a/subxt/src/error/mod.rs b/subxt/src/error/mod.rs index 331f3e58ef..4beb8f7de8 100644 --- a/subxt/src/error/mod.rs +++ b/subxt/src/error/mod.rs @@ -8,7 +8,7 @@ mod dispatch_error; use core::fmt::Debug; -#[cfg(feature = "experimental-light-client")] +#[cfg(feature = "unstable-light-client")] pub use crate::rpc::LightClientError; // Re-export dispatch error types: @@ -67,7 +67,7 @@ pub enum Error { #[error("An error occurred but it could not be decoded: {0:?}")] Unknown(Vec), /// Light client error. - #[cfg(feature = "experimental-light-client")] + #[cfg(feature = "unstable-light-client")] #[error("An error occurred but it could not be decoded: {0:?}")] LightClient(#[from] LightClientError), /// Other error. diff --git a/subxt/src/rpc/mod.rs b/subxt/src/rpc/mod.rs index b520bd2eb8..3847d3afc2 100644 --- a/subxt/src/rpc/mod.rs +++ b/subxt/src/rpc/mod.rs @@ -47,7 +47,7 @@ #[cfg(feature = "jsonrpsee")] mod jsonrpsee_impl; -#[cfg(feature = "experimental-light-client")] +#[cfg(feature = "unstable-light-client")] mod lightclient; mod rpc; @@ -66,5 +66,5 @@ pub use rpc_client_t::{ pub use rpc_client::{rpc_params, RpcClient, RpcParams, Subscription}; -#[cfg(feature = "experimental-light-client")] +#[cfg(feature = "unstable-light-client")] pub use lightclient::{LightClient, LightClientError}; diff --git a/subxt/src/rpc/types.rs b/subxt/src/rpc/types.rs index 3d6e0f1ea6..3c1794a1f4 100644 --- a/subxt/src/rpc/types.rs +++ b/subxt/src/rpc/types.rs @@ -509,7 +509,7 @@ pub enum FollowEvent { #[serde(rename_all = "camelCase")] pub struct ChainHeadResult { /// Result of the method. - #[cfg(not(feature = "experimental-light-client"))] + #[cfg(not(feature = "unstable-light-client"))] pub result: T, /// Result of the method. /// @@ -517,7 +517,7 @@ pub struct ChainHeadResult { /// /// `chainHead_body` returns a vector of values, while /// `chainHead_storage` returns just one plain element. - #[cfg(feature = "experimental-light-client")] + #[cfg(feature = "unstable-light-client")] pub value: T, }