bulwark_wasm_sdk/lib.rs
//! This crate provides the logic for Bulwark's guest environment.
pub use bulwark_wasm_sdk_macros::{bulwark_plugin, handler};
// Each macro invocation has to be scoped to its own mod to avoid fixed constant name collisions
#[allow(unused_macros)]
#[doc(hidden)]
pub mod bulwark_host {
wit_bindgen::generate!({
world: "bulwark:plugin/host-api"
});
}
// Due to https://github.com/bytecodealliance/wit-bindgen/issues/674 we don't call `generate!` for
// the handlers and instead define the trait manually and do the bindings through our own macro.
mod errors;
mod from;
mod host_api;
pub use bulwark_decision::*;
pub use errors::*;
pub use from::*;
pub use host_api::*;