The plugin functionality of mdBook is really useful, but I do feel a bit strange about letting plugins run amok without any sandboxing. It wouldn't be too complicated to add wasmtime or a wasm interpreter to mdBook to let it run plugins that have been compiled to wasm32-wasi. Most plugins could probably be recompiled without any source changes.
Of course, regular executable plugins would still be supported.
The plugin functionality of mdBook is really useful, but I do feel a bit strange about letting plugins run amok without any sandboxing. It wouldn't be too complicated to add wasmtime or a wasm interpreter to mdBook to let it run plugins that have been compiled to
wasm32-wasi
. Most plugins could probably be recompiled without any source changes.Of course, regular executable plugins would still be supported.