@@ -22,8 +22,10 @@ use tracing::{error, trace};
2222use zenoh_buffers:: buffer:: SplitBuffer ;
2323use zenoh_config:: { unwrap_or_default, wrappers:: ZenohId , ConfigValidator , WhatAmI } ;
2424use zenoh_core:: Wait ;
25+ #[ cfg( all( feature = "plugins" , feature = "runtime_plugins" ) ) ]
26+ use zenoh_plugin_trait:: PluginDiff ;
2527#[ cfg( feature = "plugins" ) ]
26- use zenoh_plugin_trait:: { PluginControl , PluginDiff , PluginStatus } ;
28+ use zenoh_plugin_trait:: { PluginControl , PluginStatus } ;
2729#[ cfg( feature = "plugins" ) ]
2830use zenoh_protocol:: core:: key_expr:: keyexpr;
2931use zenoh_protocol:: {
@@ -39,7 +41,7 @@ use zenoh_result::ZResult;
3941use zenoh_transport:: unicast:: TransportUnicast ;
4042
4143use super :: { routing:: dispatcher:: face:: Face , Runtime } ;
42- #[ cfg( feature = "plugins" ) ]
44+ #[ cfg( all ( feature = "plugins" , feature = "runtime_plugins" ) ) ]
4345use crate :: api:: plugins:: PluginsManager ;
4446use crate :: {
4547 api:: {
@@ -95,7 +97,7 @@ impl ConfigValidator for AdminSpace {
9597}
9698
9799impl AdminSpace {
98- #[ cfg( feature = "plugins" ) ]
100+ #[ cfg( all ( feature = "plugins" , feature = "runtime_plugins" ) ) ]
99101 fn start_plugin (
100102 plugin_mgr : & mut PluginsManager ,
101103 config : & zenoh_config:: PluginLoad ,
@@ -220,7 +222,7 @@ impl AdminSpace {
220222 Arc :: new ( plugins_status) ,
221223 ) ;
222224
223- #[ cfg( feature = "plugins" ) ]
225+ #[ cfg( all ( feature = "plugins" , feature = "runtime_plugins" ) ) ]
224226 let mut active_plugins = runtime
225227 . plugins_manager ( )
226228 . started_plugins_iter ( )
0 commit comments