43 releases (24 stable)
| 1.9.0 | Apr 10, 2026 |
|---|---|
| 1.8.0 | Mar 13, 2026 |
| 1.7.2 | Jan 8, 2026 |
| 1.7.1 | Dec 10, 2025 |
| 0.5.0-beta.9 | Nov 24, 2021 |
#1952 in Network programming
188,526 downloads per month
Used in 118 crates
(16 directly)
620KB
13K
SLoC
The plugin infrastructure for Zenoh.
To build a plugin, implement Plugin.
If building a plugin for zenohd, you should use the types exported in zenoh::plugins to fill Plugin's associated types.
To check your plugin typing for zenohd, have your plugin implement zenoh::plugins::ZenohPlugin
Plugin is a struct which implements the Plugin trait. This trait has two associated types:
StartArgs: the type of the arguments passed to the plugin'sstartfunction.Instance: the type of the plugin's instance.
The actual work of the plugin is performed by the instance, which is created by the start function.
Plugins are loaded, started and stopped by PluginsManager. Stopping plugin is just dropping it's instance.
Plugins can be static and dynamic.
Static plugin is just a type which implements Plugin trait. It can be added to PluginsManager by PluginsManager::declare_static_plugin method.
Dynamic plugin is a shared library which exports set of C-repr (unmangled) functions which allows to check plugin compatibility and create plugin instance. These functions are defined automatically by declare_plugin macro.
⚠️ WARNING ⚠️
This crate is intended for Zenoh's internal use. It is not guaranteed that the API will remain unchanged in any version, including patch updates. It is highly recommended to depend solely on the zenoh and zenoh-ext crates and to utilize their public APIs.
Dependencies
~34MB
~473K SLoC