Heya, I just recompiled my sample project using the new beta wasm32-wasip2
Rust target. I was expecting the size of it to drop compared to the wasm32-wasip1
target with the shim, but somewhat counter-intuitively it hasn't?
I'm not sure what my question here is, heh. I guess I was expecting the final size to shrink because we're no longer compiling interfaces twice + translating between them - but it seems like that might not be the case?
(not that I think code size is a particularly important metric - but figured I'd still mention it?)
wasm32-wasip2
still generally relies on the shim (wasm-component-ld
has built-in copies of each shim variant), and will continue to until wasi-libc
is fully ported to use WASIp2 natively. Currently it only uses WASIp2 for socket support, and WASIp1 for everything else, hence the need for the shim.
ohhh, I see!
okay that makes sense to me
ty!
Yoshua Wuyts has marked this topic as resolved.
Not sure about the etiquette around posting on "resolved" "topics", but...
Wasip2 networking support is pretty close to landing, so I assume this will change soon: https://github.com/rust-lang/rust/pull/129638
Last updated: Dec 23 2024 at 13:07 UTC