feature: Rename experimental to unstable

Signed-off-by: Alexandru Vasile <alexandru.vasile@parity.io>
This commit is contained in:
Alexandru Vasile
2023-05-25 14:05:33 +03:00
parent e470006fac
commit f33d4cf0da
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ homepage.workspace = true
description = "Subxt example usage" description = "Subxt example usage"
[dev-dependencies] [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 } tokio = { workspace = true }
futures = { workspace = true } futures = { workspace = true }
hex = { workspace = true } hex = { workspace = true }
+1 -1
View File
@@ -42,7 +42,7 @@ unstable-metadata = []
# Activate this to expose the Light Client functionality. # Activate this to expose the Light Client functionality.
# Note that this feature is experimental and things may break or not work as expected. # Note that this feature is experimental and things may break or not work as expected.
experimental-light-client = [ unstable-light-client = [
"smoldot-light/std", "smoldot-light/std",
"tokio-stream", "tokio-stream",
"tokio/sync", "tokio/sync",
+2 -2
View File
@@ -8,7 +8,7 @@ mod dispatch_error;
use core::fmt::Debug; use core::fmt::Debug;
#[cfg(feature = "experimental-light-client")] #[cfg(feature = "unstable-light-client")]
pub use crate::rpc::LightClientError; pub use crate::rpc::LightClientError;
// Re-export dispatch error types: // Re-export dispatch error types:
@@ -67,7 +67,7 @@ pub enum Error {
#[error("An error occurred but it could not be decoded: {0:?}")] #[error("An error occurred but it could not be decoded: {0:?}")]
Unknown(Vec<u8>), Unknown(Vec<u8>),
/// Light client error. /// Light client error.
#[cfg(feature = "experimental-light-client")] #[cfg(feature = "unstable-light-client")]
#[error("An error occurred but it could not be decoded: {0:?}")] #[error("An error occurred but it could not be decoded: {0:?}")]
LightClient(#[from] LightClientError), LightClient(#[from] LightClientError),
/// Other error. /// Other error.
+2 -2
View File
@@ -47,7 +47,7 @@
#[cfg(feature = "jsonrpsee")] #[cfg(feature = "jsonrpsee")]
mod jsonrpsee_impl; mod jsonrpsee_impl;
#[cfg(feature = "experimental-light-client")] #[cfg(feature = "unstable-light-client")]
mod lightclient; mod lightclient;
mod rpc; mod rpc;
@@ -66,5 +66,5 @@ pub use rpc_client_t::{
pub use rpc_client::{rpc_params, RpcClient, RpcParams, Subscription}; pub use rpc_client::{rpc_params, RpcClient, RpcParams, Subscription};
#[cfg(feature = "experimental-light-client")] #[cfg(feature = "unstable-light-client")]
pub use lightclient::{LightClient, LightClientError}; pub use lightclient::{LightClient, LightClientError};
+2 -2
View File
@@ -509,7 +509,7 @@ pub enum FollowEvent<Hash> {
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct ChainHeadResult<T> { pub struct ChainHeadResult<T> {
/// Result of the method. /// Result of the method.
#[cfg(not(feature = "experimental-light-client"))] #[cfg(not(feature = "unstable-light-client"))]
pub result: T, pub result: T,
/// Result of the method. /// Result of the method.
/// ///
@@ -517,7 +517,7 @@ pub struct ChainHeadResult<T> {
/// ///
/// `chainHead_body` returns a vector of values, while /// `chainHead_body` returns a vector of values, while
/// `chainHead_storage` returns just one plain element. /// `chainHead_storage` returns just one plain element.
#[cfg(feature = "experimental-light-client")] #[cfg(feature = "unstable-light-client")]
pub value: T, pub value: T,
} }