Building Plugins
Bulwark's plugins target the WebAssembly (WASM) instruction format and use the WebAssembly System Interface (WASI) API to communicate with their host environment. Currently, Bulwark only offers support for a Rust SDK, however other language support is planned.
The Rust SDK requires a Cargo.toml
file in the plugin directory. This declares a plugin's dependencies and includes useful metadata like the plugin name and author information.
cargo.toml
Plugin logic will be written in a src/lib.rs
file.
src/lib.rs
A build
subcommand is included in the bulwark-cli
binary and should generally be used to compile Bulwark plugins.
The default location for build output is the dist/
directory.
Last updated