diff --git a/commons/zenoh-macros/src/lib.rs b/commons/zenoh-macros/src/lib.rs index 87b6f67374..3d5749fe6c 100644 --- a/commons/zenoh-macros/src/lib.rs +++ b/commons/zenoh-macros/src/lib.rs @@ -183,7 +183,7 @@ pub fn unstable(attr: TokenStream, tokens: TokenStream) -> TokenStream { // FIXME(fuzzypixelz): refactor `unstable` macro to accept arguments #[proc_macro_attribute] -pub fn unstable_config(args: TokenStream, tokens: TokenStream) -> TokenStream { +pub fn internal_config(args: TokenStream, tokens: TokenStream) -> TokenStream { let tokens = unstable_doc(args, tokens); let mut item = match parse_annotable_item!(tokens) { Ok(item) => item, @@ -195,7 +195,7 @@ pub fn unstable_config(args: TokenStream, tokens: TokenStream) -> TokenStream { Err(err) => return err.into_compile_error().into(), }; - let feature_gate: Attribute = parse_quote!(#[cfg(feature = "unstable_config")]); + let feature_gate: Attribute = parse_quote!(#[cfg(feature = "internal_config")]); attrs.push(feature_gate); TokenStream::from(item.to_token_stream()) diff --git a/zenoh/Cargo.toml b/zenoh/Cargo.toml index de6882e941..d7c5f447b9 100644 --- a/zenoh/Cargo.toml +++ b/zenoh/Cargo.toml @@ -64,8 +64,8 @@ transport_udp = ["zenoh-transport/transport_udp"] transport_unixsock-stream = ["zenoh-transport/transport_unixsock-stream"] transport_ws = ["zenoh-transport/transport_ws"] transport_vsock = ["zenoh-transport/transport_vsock"] -unstable = ["unstable_config", "zenoh-keyexpr/unstable"] -unstable_config = [] +unstable = ["internal_config", "zenoh-keyexpr/unstable"] +internal_config = [] [dependencies] tokio = { workspace = true, features = ["rt", "macros", "time"] } diff --git a/zenoh/src/api/config.rs b/zenoh/src/api/config.rs index 1388ac8110..675c8a93a9 100644 --- a/zenoh/src/api/config.rs +++ b/zenoh/src/api/config.rs @@ -91,7 +91,7 @@ impl Config { } } -#[zenoh_macros::unstable_config] +#[zenoh_macros::internal_config] impl std::ops::Deref for Config { type Target = zenoh_config::Config; @@ -100,7 +100,7 @@ impl std::ops::Deref for Config { } } -#[zenoh_macros::unstable_config] +#[zenoh_macros::internal_config] impl std::ops::DerefMut for Config { fn deref_mut(&mut self) -> &mut ::Target { &mut self.0 diff --git a/zenoh/tests/acl.rs b/zenoh/tests/acl.rs index b3ba4240db..389abfa47a 100644 --- a/zenoh/tests/acl.rs +++ b/zenoh/tests/acl.rs @@ -12,7 +12,7 @@ // ZettaScale Zenoh Team, // -#![cfg(feature = "unstable_config")] +#![cfg(feature = "internal_config")] #![cfg(target_family = "unix")] mod test { use std::{ diff --git a/zenoh/tests/authentication.rs b/zenoh/tests/authentication.rs index f2a3339084..a49261c9d1 100644 --- a/zenoh/tests/authentication.rs +++ b/zenoh/tests/authentication.rs @@ -12,7 +12,7 @@ // ZettaScale Zenoh Team, // -#![cfg(feature = "unstable_config")] +#![cfg(feature = "internal_config")] mod test { use std::{ diff --git a/zenoh/tests/connection_retry.rs b/zenoh/tests/connection_retry.rs index 071194452e..af86aeb9db 100644 --- a/zenoh/tests/connection_retry.rs +++ b/zenoh/tests/connection_retry.rs @@ -12,7 +12,7 @@ // ZettaScale Zenoh Team, // -#![cfg(feature = "unstable_config")] +#![cfg(feature = "internal_config")] use zenoh::{Config, Wait}; use zenoh_config::{ConnectionRetryConf, EndPoint, ModeDependent}; diff --git a/zenoh/tests/events.rs b/zenoh/tests/events.rs index fcd7872599..65cb8b9306 100644 --- a/zenoh/tests/events.rs +++ b/zenoh/tests/events.rs @@ -12,7 +12,7 @@ // ZettaScale Zenoh Team, // -#![cfg(feature = "unstable_config")] +#![cfg(feature = "internal_config")] use std::time::Duration; diff --git a/zenoh/tests/interceptors.rs b/zenoh/tests/interceptors.rs index 1040ba915c..76c0ccff41 100644 --- a/zenoh/tests/interceptors.rs +++ b/zenoh/tests/interceptors.rs @@ -12,7 +12,7 @@ // ZettaScale Zenoh Team, // -#![cfg(feature = "unstable_config")] +#![cfg(feature = "internal_config")] #![cfg(unix)] use std::{ diff --git a/zenoh/tests/open_time.rs b/zenoh/tests/open_time.rs index 83802d8ea1..bc5939fca8 100644 --- a/zenoh/tests/open_time.rs +++ b/zenoh/tests/open_time.rs @@ -12,7 +12,7 @@ // ZettaScale Zenoh Team, // -#![cfg(feature = "unstable_config")] +#![cfg(feature = "internal_config")] #![allow(unused)] use std::{ future::IntoFuture, diff --git a/zenoh/tests/routing.rs b/zenoh/tests/routing.rs index 79b122784f..19efbcfd19 100644 --- a/zenoh/tests/routing.rs +++ b/zenoh/tests/routing.rs @@ -12,7 +12,7 @@ // ZettaScale Zenoh Team, // -#![cfg(feature = "unstable_config")] +#![cfg(feature = "internal_config")] use std::{ sync::{ diff --git a/zenoh/tests/session.rs b/zenoh/tests/session.rs index 4c8d227a70..73aedf9588 100644 --- a/zenoh/tests/session.rs +++ b/zenoh/tests/session.rs @@ -12,7 +12,7 @@ // ZettaScale Zenoh Team, // -#![cfg(feature = "unstable_config")] +#![cfg(feature = "internal_config")] use std::{ sync::{ diff --git a/zenoh/tests/unicity.rs b/zenoh/tests/unicity.rs index df582315d2..d6a8c8f621 100644 --- a/zenoh/tests/unicity.rs +++ b/zenoh/tests/unicity.rs @@ -12,7 +12,7 @@ // ZettaScale Zenoh Team, // -#![cfg(feature = "unstable_config")] +#![cfg(feature = "internal_config")] use std::{ sync::{