Please sign in to comment.
Update the `wasi` crate for `wasm32-wasi`
This commit updates the `wasi` crate used by the standard library which is used to implement most of the functionality of libstd on the `wasm32-wasi` target. This update comes with a brand new crate structure in the `wasi` crate which caused quite a few changes for the wasi target here, but it also comes with a significant change to where the functionality is coming from. The WASI specification is organized into "snapshots" and a new snapshot happened recently, so the WASI APIs themselves have changed since the previous revision. This had only minor impact on the public facing surface area of libstd, only changing on `u32` to a `u64` in an unstable API. The actual source for all of these types and such, however, is now coming from the `wasi_preview_snapshot1` module instead of the `wasi_unstable` module like before. This means that any implementors generating binaries will need to ensure that their embedding environment handles the `wasi_preview_snapshot1` module.
- Loading branch information
Showing with 304 additions and 364 deletions.
- +8 −2 Cargo.lock
- +1 −1 src/libstd/Cargo.toml
- +21 −18 src/libstd/sys/wasi/args.rs
- +54 −63 src/libstd/sys/wasi/ext/fs.rs
- +3 −5 src/libstd/sys/wasi/ext/io.rs
- +52 −70 src/libstd/sys/wasi/fd.rs
- +90 −121 src/libstd/sys/wasi/fs.rs
- +6 −9 src/libstd/sys/wasi/io.rs
- +18 −26 src/libstd/sys/wasi/mod.rs
- +16 −9 src/libstd/sys/wasi/stdio.rs
- +25 −27 src/libstd/sys/wasi/thread.rs
- +10 −13 src/libstd/sys/wasi/time.rs
Oops, something went wrong.