dpp-plugin-traits
Host/guest ABI contract for Odal Node Wasm sector plugins.
Uses std types (String, Vec, HashMap) — not no_std. Defines the
interface between the platform runtime (the Wasmtime host in dpp-engine) and
sector-specific compliance rules compiled to wasm32-wasip1. This crate
contains no business logic — only the shared types that both sides of the
boundary agree on.
When to use this crate
- You are authoring a new sector plugin (a Rust crate compiled to Wasm) and need
the
DppSectorPlugintrait. - You are building a Wasmtime host that loads sector plugins and need the ABI types for capability negotiation and field error reporting.
Example
use ;
use Value;
;
Relationship to other crates
This crate has no workspace dependencies — it is self-contained by design so that plugin authors have a minimal, stable dependency.
Minimum Rust version
1.96 (MSRV is enforced in CI)
License
Apache-2.0 — see LICENSE