From 0a55afecbafcee5c5c1aba3150804d9683092e28 Mon Sep 17 00:00:00 2001 From: Michael Ilyin Date: Mon, 13 Jan 2025 15:56:48 +0100 Subject: [PATCH] removed unnecessary features from zenoh-plugin-trait to avoid unexpected compatibilty errors --- plugins/zenoh-plugin-trait/Cargo.toml | 3 --- plugins/zenoh-plugin-trait/src/lib.rs | 4 ---- plugins/zenoh-plugin-trait/src/vtable.rs | 4 ++-- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/plugins/zenoh-plugin-trait/Cargo.toml b/plugins/zenoh-plugin-trait/Cargo.toml index 12e18040e8..7635dd82e6 100644 --- a/plugins/zenoh-plugin-trait/Cargo.toml +++ b/plugins/zenoh-plugin-trait/Cargo.toml @@ -23,9 +23,6 @@ license = { workspace = true } categories = { workspace = true } description = { workspace = true } -[features] -default = [] - [lib] name = "zenoh_plugin_trait" diff --git a/plugins/zenoh-plugin-trait/src/lib.rs b/plugins/zenoh-plugin-trait/src/lib.rs index a4016a7e5c..20817217f3 100644 --- a/plugins/zenoh-plugin-trait/src/lib.rs +++ b/plugins/zenoh-plugin-trait/src/lib.rs @@ -47,10 +47,6 @@ pub use plugin::{ PluginStartArgs, PluginState, PluginStatus, PluginStatusRec, }; pub use vtable::{PluginLoaderVersion, PluginVTable, PLUGIN_LOADER_VERSION}; -use zenoh_util::concat_enabled_features; - -pub const FEATURES: &str = - concat_enabled_features!(prefix = "zenoh-plugin-trait", features = ["default"]); #[doc(hidden)] pub mod export { diff --git a/plugins/zenoh-plugin-trait/src/vtable.rs b/plugins/zenoh-plugin-trait/src/vtable.rs index 74c7479c3e..ac3cbbe8c5 100644 --- a/plugins/zenoh-plugin-trait/src/vtable.rs +++ b/plugins/zenoh-plugin-trait/src/vtable.rs @@ -13,7 +13,7 @@ // use zenoh_result::ZResult; -use crate::{Plugin, StructVersion, FEATURES}; +use crate::{Plugin, StructVersion}; pub type PluginLoaderVersion = u64; pub const PLUGIN_LOADER_VERSION: PluginLoaderVersion = 1; @@ -31,7 +31,7 @@ impl StructVersion for PluginVTable { 1 } fn struct_features() -> &'static str { - FEATURES + "" } }