xref: /aosp_15_r20/external/bazelbuild-rules_rust/wasm_bindgen/DEVELOPMENT.md (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1# Developing wasm_bindgen
2
3## Updating [wasm-bindgen][wb]
4
5Use the followign steps to update to new versions of [wasm-bindgen][wb].
6
71. Update `WASM_BINDGEN_VERSION` in `@rules_rust//wasm_bindgen:repositories.bzl`
82. Update the sha256 value for the `rules_rust_wasm_bindgen_cli` repository defined in `@rules_rust//wasm_bindgen:repositories.bzl` to match the artifact from the updated `WASM_BINDGEN_VERSION` value.
93. Regenerate dependencies by running `bazel run //wasm_bindgen/3rdparty:crates_vendor -- --repin` from the root of `rules_rust`.
104. Verify your changes by running `bazel test //wasm/...` from the `rules_rust/examples` directory.
11
12[wb]: https://github.com/rustwasm/wasm-bindgen
13