Skip to content

Conversation

@UebelAndre
Copy link
Collaborator

This PR converts the core rust_wasm_bindgen rule into a standalone rule that users can user to write custom interfaces into any rules/targets they desire while also supporting interfaces for existing Javascript rule sets. Users loading the root @rules_rust//wasm_bindgen symbols will be using the core Rust rules, where users loading symbols from the new sub directories rules_nodejs and rules_js will have variants that offer better integrations.

@UebelAndre
Copy link
Collaborator Author

UebelAndre commented Nov 25, 2023

This change also implements #2119
cc @dzbarsky

@UebelAndre UebelAndre enabled auto-merge (squash) November 25, 2023 17:28
@UebelAndre UebelAndre force-pushed the wasm branch 6 times, most recently from 0bf7842 to 96b033b Compare November 25, 2023 18:12
Copy link
Contributor

@dzbarsky dzbarsky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great, thanks for finding another path forward. We'll need to do a bit of work here to support bzlmod as well but that can be in other PRs


### Interfacing with Javascript rules

While it's recommended for users to mantain their own , in the
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing word after "own"?

@UebelAndre UebelAndre merged commit 76daee3 into bazelbuild:main Nov 27, 2023
@UebelAndre UebelAndre deleted the wasm branch November 27, 2023 14:20
UebelAndre added a commit that referenced this pull request Jan 5, 2024
#2284 removed the .wasm
output file from the `DefaultInfo` provider, which makes it unavailable
to other downstream rules.

This PR restores the behavior pre-0.32.0.

---------

Co-authored-by: UebelAndre <github@uebelandre.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants