How feasible is to create a WASM plugin system in Rust?

This page summarizes the projects mentioned and recommended in the original post on

Our great sponsors
  • CodiumAI - TestGPT | Generating meaningful tests for busy devs
  • ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
  • InfluxDB - Access the most powerful time series database as a service
  • SonarLint - Clean code begins in your IDE with SonarLint
  • extism

    The Universal Plug-in System. Extend anything with WebAssembly (wasm).

    take a look at the docs & github if you're interested: &

  • wasmi

    WebAssembly (Wasm) interpreter.

    There are lots of solutions to this, I was randomly looking into this yesterday purely out of curiosity and it looks to me like wasmi is the current go-to option.

  • CodiumAI

    TestGPT | Generating meaningful tests for busy devs. Get non-trivial tests (and trivial, too!) suggested right inside your IDE, so you can code smart, create more value, and stay confident when you push.

  • fp-bindgen

    Bindings generator for full-stack WASM plugins

    fp-bindgen is a library that can help you if you to write custom plugin APIs for such a use case:

  • Ambient

    The multiplayer game engine

    Yes. I implemented the WASM logic for Ambient. It's all doable, but as the other commenters have mentioned, bindings can be a bit of a pain.

  • trinity

    Matrix bots in Rust and WebAssembly (by bnjbvr)

    Here's another example:

  • wasmloading

    I wrote a toy example of this a few years ago. It's probably a little outdated, but it's also probably a little easier to get your head around than reading a full-fledged plugin system in something like lapce:

  • wasmtime_serde

    Simple library for serializing complex types to the wasmtime runtime using serde

    yes, it's perfectly possible, the biggest hurdle to this is that you need some way to map the data into and out of wasm memory, you can do this manually or use one of the crates that currently solve this problem (I'm author of a github)


    ONLYOFFICE Docs — document collaboration in your environment. Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts