Skip to content

Commit

Permalink
feat: adding dynamic_plugin feature to enable the declare_plugin macro (
Browse files Browse the repository at this point in the history
#89)

Signed-off-by: gabrik <[email protected]>
  • Loading branch information
gabrik authored May 3, 2024
1 parent 5166c06 commit 6fb8f73
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ crate-type = ["cdylib", "rlib"]

[features]
stats = ["zenoh/stats"]
dynamic_plugin = []
default = ["dynamic_plugin"]

[dependencies]
async-std = "=1.12.0"
Expand Down
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ pub(crate) enum OnClosure {
}

pub struct RocksDbBackend {}

#[cfg(feature = "dynamic_plugin")]
zenoh_plugin_trait::declare_plugin!(RocksDbBackend);

impl Plugin for RocksDbBackend {
Expand Down

0 comments on commit 6fb8f73

Please sign in to comment.