| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | 15-May-2026 | - | ||||
| c-plugin/ | H | 15-May-2026 | - | 8 | 5 | |
| js-plugin/ | H | 15-May-2026 | - | 10 | 6 | |
| src/ | H | 15-May-2026 | - | 137 | 97 | |
| wit/ | H | 15-May-2026 | - | 10 | 7 | |
| .gitignore | H A D | 15-May-2026 | 76 | 5 | 4 | |
| Cargo.toml | H A D | 15-May-2026 | 408 | 18 | 15 | |
| README.md | H A D | 15-May-2026 | 455 | 14 | 9 | |
| build.rs | H A D | 15-May-2026 | 2.1 KiB | 82 | 74 |
README.md
1Build with `cargo build --release` 2 3Then, create a plugins directory (e.g. `plugins`) and copy `c-plugin/add.wasm` 4and `js-plugin/subtract.wasm` into that directory. 5 6Finally, run (for example): 7 8`target/release/calculator --plugins plugins add 1 2` 9or 10`target/release/calculator --plugins plugins subtract 1 2` 11 12For more details, see the ["Calculator with WebAssembly Plugins"](http://docs.wasmtime.dev/wasip2-plugins.html) 13section of the documentation. 14