diff --git a/docs/src/rust_wasm_bindgen.md b/docs/src/rust_wasm_bindgen.md index 8fc0a1cd29..0c0c29b265 100644 --- a/docs/src/rust_wasm_bindgen.md +++ b/docs/src/rust_wasm_bindgen.md @@ -4,6 +4,11 @@ Bazel rules for generating wasm modules for Javascript using [wasm-bindgen][wb]. +## Rules + +- [rust_wasm_bindgen](#rust_wasm_bindgen) +- [rust_wasm_bindgen_toolchain](#rust_wasm_bindgen_toolchain) + ## Setup To begin using the `wasm-bindgen` rules, users can load the necessary dependencies @@ -24,7 +29,7 @@ should avoid calling `rust_wasm_bindgen_register_toolchains` and instead use the [rust_wasm_bindgen_toolchain](#rust_wasm_bindgen_toolchain) rule to define their own toolchains to register in the workspace. -### Interfacing with Javascript rules +## Interfacing with Javascript rules While it's recommended for users to mantain their own , in the `@rules_rust_wasm_bindgen` package there exists interface sub-packages for various @@ -128,3 +133,5 @@ Info about wasm-bindgen outputs. | js | Depset[File]: The Javascript files produced by `wasm-bindgen`. | | ts | Depset[File]: The Typescript files produced by `wasm-bindgen`. | | wasm | File: The `.wasm` file generated by `wasm-bindgen`. | + +