1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! Public Rust API and plugin SDK for Confium.
//!
//! This crate is the bottom of the dependency stack. Everyone (core, store,
//! registry, net, tc, plugin authors) can depend on it. It does **not**
//! include the plugin loader itself.
//!
//! It exposes the shared types that plugin authors need to write a Confium
//! plugin in Rust without re-declaring the wire types:
//!
//! - Opaque handle helpers ([`OpaqueHandle`]) for boxing/unboxing Rust
//! objects behind the type-erased `*mut c_void` plugin contract.
//! - Option map types ([`OptionMap`], [`OptionValue`]) used by the
//! `cfmp_<iface>_create` family to pass string/u32/nested configuration
//! from Confium to the plugin.
//! - Error conversion ([`PluginError`], [`ErrorCode`]) — the canonical
//! numeric codes returned through the FFI surface, plus a `From` impl so
//! plugin authors can `?` their own errors into the wire code.
//!
//! The proc-macros in `confium-macros` consume these types when generating
//! the `cfmp_<iface>_*` entry points and the `cfmp_query_interfaces` /
//! `cfmp_metadata` boilerplate. See `TODO.roadmap/02-workspace-layout.md`
//! and `TODO.roadmap/03-plugin-contract.md` for the design.
pub use ;
pub use OpaqueHandle;
pub use ;
pub use ;
pub use ;
/// Re-export of the proc-macros so plugin authors can write
/// `use confium_api::plugin_interface` without depending on
/// `confium-macros` directly.
pub use ;