tree: 2822e56f7c6827796dcbdffb5ccdc58d656c239f [path history] [tgz]
  1. bindgen/
  2. example/
  5. wasm_bindings.gni

Diagnostics WASM

Diagnostics WASM is a set of build rules and libraries to build rustc_library targets as .wasm libraries, with generated bindings.

WARNING: These build templates are for use only under //src/diagnostics. All other uses are unsupported and may break without warning.


This project can be added to builds by including --with //src/diagnostics/wasm to the fx set invocation.


Diagnostics WASM can be used by using the following import in


For an example, see //src/diagnostics/wasm/example.

Diagnostics WASM is not available in the SDK.

Source layout

The main .gni and helpers for the build rule exist in this top-level directory.

Our in-tree implementation of the wasm-bindgen CLI is under “bindgen.”

The example library exists under “example.”