Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation to wasm_bindgen macro, starting with a link to supported attributes #4401

Merged
merged 2 commits into from
Jan 9, 2025

Conversation

SwishSwushPow
Copy link
Contributor

While working with the wasm_bindgen macro I thought that it would be incredible useful to have the link to all supported attributes and their explanation as part of the docs. This way it would be quick and easy to access these resources e.g. straight from an IDE.

I would've added even more documentation to the macro, but at this point I don't think I am knowledgeable enough about it to not include something inaccurate or wrong. 😅

…ibutes

Adding a link to the list of attributes that are supported by the `wasm_bindgen` macro to its docs.
Copy link
Collaborator

@daxpedda daxpedda left a comment

Choose a reason for hiding this comment

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

Thanks!

crates/macro/src/lib.rs Outdated Show resolved Hide resolved
@daxpedda daxpedda merged commit 949b6c6 into rustwasm:main Jan 9, 2025
64 checks passed
@SwishSwushPow SwishSwushPow deleted the patch-1 branch January 13, 2025 10:53
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.

2 participants