mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-07 03:48:01 +00:00
feature: Rename experimental to unstable
Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
+1
-1
@@ -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 }
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
@@ -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<u8>),
|
||||
/// 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.
|
||||
|
||||
@@ -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};
|
||||
|
||||
@@ -509,7 +509,7 @@ pub enum FollowEvent<Hash> {
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct ChainHeadResult<T> {
|
||||
/// 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<T> {
|
||||
///
|
||||
/// `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,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user