This guide covers a minimal workflow with the new SDK-only plugin path.
Use the scaffold script from repository root:
tools/wasm-plugin-sdk/new-plugin.ps1 `
-Name "Example Lyrics" `
-PluginId "dev.stellatune.example.lyrics" `
-Ability "lyrics" `
-TypeId "example-lyrics"The script creates:
sandbox-wasm-plugins/<crate-name>/Cargo.tomlsandbox-wasm-plugins/<crate-name>/src/lib.rssandbox-wasm-plugins/<crate-name>/plugin.json
cd sandbox-wasm-plugins/<crate-name>
cargo build --release --target wasm32-wasip2From repository root:
tools/wasm-plugin-sdk/package-plugin.ps1 `
-ProjectDir sandbox-wasm-plugins/<crate-name>Output layout:
target/plugins/<plugin-id>/plugin.jsontarget/plugins/<plugin-id>/wasm/*.wasmtarget/plugins/<plugin-id>-<version>.zip
Use crates/stellatune-wasm-plugins package functions against the generated
plugin root directory.
- This flow is intentionally Wasm-only; legacy dynamic plugin formats are out of scope.
- Generated code uses stub implementations (
unimplemented!for complex methods). Replace those with real logic before packaging.