-
-
Notifications
You must be signed in to change notification settings - Fork 693
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
Unpin wasm-bindgen
to improve compatibility with other crates
#3186
Conversation
I'm aware
Could you explain why this is required? |
Pinning is required due to compatibility with |
Due to You get the following error on version mismatch: it looks like the Rust project used to create this wasm file was linked against
version of wasm-bindgen that uses a different bindgen format than this binary:
rust wasm file schema version: 0.2.95 (94b266337)
this binary schema version: 0.2.93 (94b266337)
Currently the bindgen format is unstable enough that these two schema versions
must exactly match. You can accomplish this by either updating this binary or
the wasm-bindgen dependency in the Rust project. |
I'm happy to let CI run on this PR. Looking at the |
Okay, so after publishing an updated For context and just FYI for the future, the reason I had pinned it was that, as described above, the This was a helpful nudge since all this needed was just a new c-l release from its current state. |
@gbj assume that with the current state, IMHO, pinning is required here and we need to synchronize releases for this dependency on both The solution to outdated dependencies is to get notified by |
Thanks for merging this! I looked into the I was using Trunk and didn't experience any issues. Trunk is not compiled with Using a similar approach in |
I am aware of both the issues and the trade-offs you describe in your comments, above. Over the course of the last couple years, the least painful way for us to manage @sabify You have proposed adding @DanielleHuisman If you want to make a PR to change this behavior in In any case I don't think more of either discussion should happen here, as conversations in the comments of closed PRs are hard to keep track of. |
Leptos can't be installed alongside another crate that uses a newer
wasm-bindgen
version. For example:Unpinning
wasm-bindgen
in Leptos should improve compatibility with other crates.