Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 wasm-bindgen v0.2 handles for web_sys::HtmlCanvasElement and web_sys::OffscreenCanvas #134
Add wasm-bindgen v0.2 handles for web_sys::HtmlCanvasElement and web_sys::OffscreenCanvas #134
Changes from all commits
4e71da4
5cca108
7179e66
ec045e5
a9fbe05
4711c95
62c92c2
a363759
f8b3f9d
4dd1c61
8c15e15
789b26a
a79764c
23d2195
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@daxpedda: Do you have a reference for this? How guaranteed is it that there will never be two
wasm-bindgen
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is not 100% guaranteed.
But generally speaking the way
wasm-bindgen
works prevents this, because it encodes "stuff" into the Wasm binary that needs to be interpreted by the CLI tool, so multiple versions will always be incompatible unlesswasm-bindgen
becomes a completely different beast.That said, it was discussed in the past to move
wasm-bindgen
to the component model (which isn't stable yet) and drop the CLI completely at some point. This would probably allow multiple versions ofwasm-bindgen
to co-exist in the same binary, but old versions will still be unusable. But considering thatwasm-bindgen
is not actively developed anymore and there are now things likewit-bindgen
, I doubt this will ever happen.// the binary will simply fail to compile!
I believe it should compile, but you won't be able to use it. Without the CLI tool it won't work on any runtime and the CLI tool will fail if you have multiple versions.