Any idea about what Figma is using to run Rust/c++ code in browser?

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

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

    2D raster & vector editor that melds traditional layers & tools with a modern node-based, non-destructive, procedural workflow.

  • We are creating Graphite, another 2D graphics editor written with a web frontend. I don't know how similar or different our approach is to Figma's, but I can talk a little bit about how our system works.

  • book

    The Rust and WebAssembly Book (by rustwasm)

  • https://rustwasm.github.io/docs/book goes over how to compile to WASM and rendering to a canvas.

  • 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.

    WorkOS logo
  • emsdk

    Emscripten SDK

  • Afaik they use C++ with emscripten with WebGL for their rendering.

  • bevy

    A refreshingly simple data-driven game engine built in Rust

  • Bevy uses wgpu for rendering and it can target web-assembly as well. Going through its source code could give you an idea where to start and the crates to use.

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