Commit Graph

5 Commits

Author SHA1 Message Date
github-actions[bot]
439e7b1dfd Sync to Pumpkin-MC/pumpkin-plugin-wit@39bf330 2026-09-28 07:48:08 +00:00
github-actions[bot]
f8ccb8a9d3 Sync to Pumpkin-MC/pumpkin-plugin-wit@4d7a501 2026-09-21 17:40:22 +00:00
MegalithOfficial
60bb3cd429
Lift only the handled event in handle-event
The generated export lifted the whole Event variant, which pulls in code for
every event there is. A plugin now only compiles the cases it handles, the
example builds in about 6s instead of 75s.
2026-09-21 18:33:30 +02:00
MegalithOfficial
00bae41ebd
Add CI and a workflow to sync the WIT submodule 2026-09-19 17:47:15 +02:00
MegalithOfficial
28c3e929ca
Add Zig bindings for the Pumpkin plugin API
The bindings under src/wit are generated from the pumpkin-plugin-wit
submodule by tools/gen.zig. The canonical ABI is handled at comptime in
src/abi.zig, so plugins are plain wasm32-freestanding modules and only
need wasm-tools to become a component.

On top of that there is a small hand written layer: plugin registration,
typed event handlers, declarative commands (cmd), text components from
struct literals (msg) and std.log support.
2026-09-19 17:46:24 +02:00