bulwark_wasm_sdk/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//! 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::*;