-
Notifications
You must be signed in to change notification settings - Fork 28
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
cargo wasi build with wasm-bindgen dep in cargo.toml but not used results in build error #16
Comments
Hm this is a bit worrisome yeah. I think though the right fix here is to get The output here is also somewhat unfortunate, but |
Yeah totally. I mostly filed it here because this is how I got the bug, and I could see "don't run |
If there's no need for a transformation then there's no need to inject anything, so make sure that wasm-bindgen with anyref passes enabled works on non-wasm-bindgen blobs as well. Closes bytecodealliance/cargo-wasi#16
Heh no worries! Just wanted to make sure we're on the same page :) Pushed a fix up at rustwasm/wasm-bindgen#1861 |
If there's no need for a transformation then there's no need to inject anything, so make sure that wasm-bindgen with anyref passes enabled works on non-wasm-bindgen blobs as well. Closes bytecodealliance/cargo-wasi#16
I think the root cause is in
wasm-bindgen
but it is more clear that this is a bug and not expected behavior in the context ofcargo wasi
.This appears to be originating in the anyref xform, and we probably just need to gracefully handle when there aren't any anyrefs better.
The text was updated successfully, but these errors were encountered: