rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust
https://rust-lang.github.io/mdBook/
Mozilla Public License 2.0
17.3k stars 1.59k forks source link

Webassembly plugins? #1577

Open lachlansneff opened 3 years ago

lachlansneff commented 3 years ago

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.

elasticdotventures commented 2 years ago

Hi @lachlansneff

I came here to write this. Would you be interested in collaborating on a project?