Expand description
Generated bindings from WIT definitions.
This module contains all the type-safe bindings generated by wit-bindgen
from the ZLayer WIT interface definitions. It includes:
- Imports: Host-provided interfaces (config, keyvalue, logging, secrets, metrics)
- Exports: Plugin-exported interfaces (handler, transformer, authenticator, etc.)
- Types: Common types used across interfaces
§Usage
Import the bindings you need:
ⓘ
use zlayer_sdk::bindings::{
export_handler,
exports::zlayer::plugin::handler::Guest,
zlayer::plugin::{config, logging},
};Modules§
Macros§
- export_
handler - Generates
#[unsafe(no_mangle)]functions to export the specified type as the root implementation of all generated traits.