1*d4726bddSHONG Yifan# Developing wasm_bindgen 2*d4726bddSHONG Yifan 3*d4726bddSHONG Yifan## Updating [wasm-bindgen][wb] 4*d4726bddSHONG Yifan 5*d4726bddSHONG YifanUse the followign steps to update to new versions of [wasm-bindgen][wb]. 6*d4726bddSHONG Yifan 7*d4726bddSHONG Yifan1. Update `WASM_BINDGEN_VERSION` in `@rules_rust//wasm_bindgen:repositories.bzl` 8*d4726bddSHONG Yifan2. 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. 9*d4726bddSHONG Yifan3. Regenerate dependencies by running `bazel run //wasm_bindgen/3rdparty:crates_vendor -- --repin` from the root of `rules_rust`. 10*d4726bddSHONG Yifan4. Verify your changes by running `bazel test //wasm/...` from the `rules_rust/examples` directory. 11*d4726bddSHONG Yifan 12*d4726bddSHONG Yifan[wb]: https://github.com/rustwasm/wasm-bindgen 13