What's the best way to generate WASM programmatically?

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

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • parity-wasm

    Discontinued WebAssembly serialization/deserialization in rust

    parity-wasm is deprecated and Parsing and Generating .wasm Binaries doesn't list anything else.

  • wasm-pack-template

    a template for starting a rust-wasm project to be used with wasm-pack

    I use this https://github.com/rustwasm/wasm-pack-template

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

  • book

    The Rust and WebAssembly Book (by rustwasm)

  • wasm-tools

    CLI and Rust libraries for low-level manipulation of WebAssembly modules

    Though looking at the deprecation PR in parity-wasm, it looks like the reason they abandoned it is because they switched to wasm-encoder so I guess that's probably what you should be using instead.

  • binaryen

    Optimizer and compiler/toolchain library for WebAssembly

    Probably https://github.com/WebAssembly/binaryen/, there were various rust bindings to it.

  • webassembly-rs

    A Rust library for working with WebAssembly bytecode.

    https://github.com/richardanaya/webassembly-rs this might help you

  • chasm-rs

    A simple compile-to-WebAssembly language rewritten in Rust

    Some time ago I have build this little language that compiles to a Wasm module: https://github.com/Rodrigodd/chasm-rs. It was based on this blog post.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

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