diff --git a/zenoh-plugin-zenoh-flow/Cargo.toml b/zenoh-plugin-zenoh-flow/Cargo.toml index cdbf8c88..90982704 100644 --- a/zenoh-plugin-zenoh-flow/Cargo.toml +++ b/zenoh-plugin-zenoh-flow/Cargo.toml @@ -23,6 +23,10 @@ name = "zenoh-plugin-zenoh-flow" repository = { workspace = true } version = { workspace = true } +[features] +dynamic_plugin = [] +default = ["dynamic_plugin"] + [lib] crate-type = ["cdylib"] name = "zenoh_plugin_zenoh_flow" diff --git a/zenoh-plugin-zenoh-flow/src/lib.rs b/zenoh-plugin-zenoh-flow/src/lib.rs index 1c0a2b2a..71841740 100644 --- a/zenoh-plugin-zenoh-flow/src/lib.rs +++ b/zenoh-plugin-zenoh-flow/src/lib.rs @@ -27,6 +27,7 @@ pub struct ZenohFlowPlugin(Sender<()>); pub const GIT_VERSION: &str = git_version::git_version!(prefix = "v", cargo_prefix = "v"); +#[cfg(feature = "dynamic_plugin")] zenoh_plugin_trait::declare_plugin!(ZenohFlowPlugin); impl ZenohPlugin for ZenohFlowPlugin {}