A malbox plugin template for Rust.
- Rust (stable toolchain)
- Click Use this template on GitHub to create your own repository.
- Rename your plugin in
Cargo.toml(thenamefield) andplugin.toml(the[plugin]section). - Build:
cargo build| File | Purpose |
|---|---|
Cargo.toml |
Rust package configuration and dependencies |
src/main.rs |
Plugin implementation |
plugin.toml |
Plugin metadata, runtime config, and result declarations |
build.rs |
Watches plugin.toml for changes |
By default this template creates a guest plugin (runs inside the analysis VM). To create a host plugin (runs on the host machine):
- In
Cargo.toml, changefeatures = ["guest"]tofeatures = ["host"] - In
src/main.rs, change#[malbox::guest_plugin]to#[malbox::host_plugin] - In
plugin.toml, changetype = "guest"totype = "host"