-
Notifications
You must be signed in to change notification settings - Fork 30
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: