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 BUILD.gn:
For an example, see //src/diagnostics/wasm/example.
Diagnostics WASM is not available in the SDK.
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.”