wasm: support for wasm32-wasip2 target - #12653
Conversation
|
But why? Is there any usecase wasip1 cannot cover? If wasip2 works on web browsers using shim, we should drop wasip1 at the same time. |
|
The main reason to have WASI Preview 2 is because Preview 1 is not being further developed. In wasip1, we would never get full support for streams and socket. With wasip2, on other hand, we will have those as well as support for the WebAssembly Component Model. This documentation might help answering you: https://component-model.bytecodealliance.org/design/why-component-model.html#interoperability Should we drop wasip1? Probably not yet. There are few features that are missing in Preview2:
|
|
Ok. But do you want to publish release binaries too? Or is |
|
GNU testsuite comparison: |
For me, I would benefit of having the released binary for wasip2. I understand it adds a bit more complexity to maintain it, but I think the burden to keep wasip2 is basically the same as wasip1. |
5feb45e to
732f48f
Compare
db9d3ff to
712ff58
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
Correctness of error handling is unrelated with initial support (cargo build). Please split PR for less diff. |
712ff58 to
e5bfc97
Compare
|
@oech3, done. I only left the changes to run the build successfully. I am skipping the integration tests for wasip2 as it will be part of the PR related to error handling. |
e5bfc97 to
042f481
Compare
Merging this PR will not alter performance
Comparing Footnotes
|
|
@codspeedbot fix this regression |
|
this is probably noise, you can ignore the perf warning |
|
@sylvestre and @oech3, I have rebased it. So let me know if you need me to do anything about those perf warnings, ok? |
042f481 to
749d289
Compare
|
@sylvestre and @oech3, as far I aware there is no other pending issues. If so, this is ready to be approved and merged. |
This comment was marked as resolved.
This comment was marked as resolved.
|
(also I have no priv for merge) |
That was already fixed. I pushed a small change in order to run the integration test of |
484c0af to
02c6ba8
Compare
|
@sylvestre, could I get your approval on this one, please? I just need that into main so I can create the other PR to enable the integration tests for wasip2. |
This comment was marked as resolved.
This comment was marked as resolved.
|
My comments were pending. Sorry for noise |
d843910 to
dca4733
Compare
|
@sylvestre, all green. |
Co-authored-by: oech3 <79379754+oech3@users.noreply.github.com>
dca4733 to
8f2f295
Compare
|
@sylvestre, is there anything pending on this PR? If not, could you help merge it, please? Thank you. |
|
thanks and sorry for the latency |
Add support for the wasm32-wasip2 (WASI Preview 2) target, enabling coreutils to compile and be used on sandboxed environments that can run WebAssembly components.
Changes
yesanduucorelibraries)