figcraft/crates/plugin/src
Sir Clangington III. 79a0e58a3c
fix(plugin): meter every host call and copied byte (#221)
Every plugin import now counts as a host call (reply_len, reply_read and set_output were free), and bytes copied out of or into the plugin's memory spend fuel, reserved before the copy or allocation, including when call overhead is set to zero. Fixes #192.

The log byte budget test from #216 runs with the default fuel, since copying a megabyte of log bytes is itself charged now.
2026-10-14 07:42:06 +07:00
..
bundle.rs M11: plugin directory on figcraft-server 2026-10-12 05:28:53 +07:00
bundle_tests.rs M11: plugin directory on figcraft-server 2026-10-12 05:28:53 +07:00
lib.rs M11: plugin directory on figcraft-server 2026-10-12 05:28:53 +07:00
manifest.rs M11: plugin directory on figcraft-server 2026-10-12 05:28:53 +07:00
sandbox.rs fix(plugin): meter every host call and copied byte (#221) 2026-10-14 07:42:06 +07:00
tests.rs fix(plugin): meter every host call and copied byte (#221) 2026-10-14 07:42:06 +07:00
v2_tests.rs M7: plugin panels and settings (#124) 2026-10-11 14:45:19 +07:00
widget.rs M11: plugin widgets and the plugin panel tail 2026-10-12 04:41:28 +07:00
widget_tests.rs M11: plugin widgets and the plugin panel tail 2026-10-12 04:41:28 +07:00