The default wasm-bindgen toolchain can now optionally be registered (#640)

I find it to be the common case that users will want to register their own `rust_wasm_bindgen_toolchain` since they'll be writing code with their own set of crate dependencies and would otherwise be limited to the version of `wasm-bindgen` used in the default toolchain. This PR should make it clearer and easier for users looking to setup their own toolchain.

Notable changes in this PR:
- Added `register_default_toolchain` to `rust_wasm_bindgen_repositories`
- Improved docs
- Raised the default version of `rules_nodejs` from `3.1.0` to `3.2.2` to pick up a few bug fixes.
- Added a `providers.bzl` file for easy access to what `rust_wasm_bindgen` returns
6 files changed
tree: 413093289ea9e0ede033fe851fab36726fca7a83
  1. .bazelci/
  2. bindgen/
  3. cargo/
  4. docs/
  5. examples/
  6. proto/
  7. rust/
  8. test/
  9. tools/
  10. util/
  11. wasm_bindgen/
  12. .bazelignore
  13. .gitignore
  14. ARCHITECTURE.md
  15. AUTHORS
  16. BUILD
  17. CODEOWNERS
  18. CONTRIBUTING.md
  19. CONTRIBUTORS
  20. LICENSE.txt
  21. README.md
  22. WORKSPACE
  23. workspace.bzl
README.md

Rust Rules

  • Postsubmit Build status
  • Postsubmit + Current Bazel Incompatible Flags Build status

Overview

This repository provides rules for building Rust projects with Bazel.

Community

Please refer to the full documentation.