bulwark_wasm_sdk/
lib.rs

1//! This crate provides the logic for Bulwark's guest environment.
2
3pub use bulwark_wasm_sdk_macros::{bulwark_plugin, handler};
4
5// Each macro invocation has to be scoped to its own mod to avoid fixed constant name collisions
6#[allow(unused_macros)]
7#[doc(hidden)]
8pub mod bulwark_host {
9    wit_bindgen::generate!({
10        world: "bulwark:plugin/host-api"
11    });
12}
13
14// Due to https://github.com/bytecodealliance/wit-bindgen/issues/674 we don't call `generate!` for
15// the handlers and instead define the trait manually and do the bindings through our own macro.
16
17mod errors;
18mod from;
19mod host_api;
20
21pub use bulwark_decision::*;
22pub use errors::*;
23pub use from::*;
24pub use host_api::*;