3 ms·
>wasm32-unknown-unknown has an ABI incompatibility which means you cannot interoperate between C compiled to Wasm and Rust compiled to Wasm. Since I was surpri
by Arnavion 4y ago
>wasm32-unknown-unknown has an ABI incompatibility which means you cannot interoperate between C compiled to Wasm and Rust compiled to Wasm.
Since I was surprised to learn this, and to save everyone else the search, it's https://github.com/rust-lang/rust/issues/71871 https://github.com/rust-lang/rust/issues/71871
- justinclift 4y agoFurther down that GitHub issue, it mentions the problem has been fixed: * https://github.com/rust-lang/rust/issues/71871#issuecomment-757374318 https://github.com/rust-lang/rust/issues/71871#issuecomment-... * https://github.com/rust-lang/rust/pull/79998 https://github.com/rust-lang/rust/pull/79998 Weirdly though, there's another issue (opened prior) that's ongoing and seems to indicate things aren't fixed after all: * https://github.com/rustwasm/team/issues/291 https://github.com/rustwasm/team/issues/291
- Arnavion 4y ago>Further down that GitHub issue, it mentions the problem has been fixed: No, if you look at the diff, it was only fixed for emscripten and wasi.
- trevyn 4y agoNote that this only affects structs that are passed by value, so it’s not always an issue and can be worked around.