You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for the wasm32-wasip2 (WASI Preview 2) target, enabling coreutils to compile and run on sandboxed environments that can run WebAssembly components.
Changes
Add wasm32-wasip2 target to CI workflows
Update code for wasip2 compatibility (yes, uucore and fs/display modules)
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:
std::os::wasi::prelude::OsStrExt is still under a unstable flag as discussed here
Generated WASM component cannot be easily loaded yet in the browser. You need JCO to transpile it and include the respective WASI shims in order to have something similar to the Uutils Playground.
Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/tail-n0f (fails in this run but passes in the 'main' branch)
Skipping an intermittent issue tests/misc/tty-eof (passes in this run but fails in the 'main' branch)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add support for the wasm32-wasip2 (WASI Preview 2) target, enabling coreutils to compile and run on sandboxed environments that can run WebAssembly components.
Changes
yes,uucoreandfs/displaymodules)