Add intiial support for wasm32-unknown-wasi
This target is [being proposed][LINK] int he rust-lang/rust repository and this is intended to get coupled with that proposal. The definitions here all match the upstream reference-sysroot definitions and the functions all match the reference sysroot as well. The linkage here is described more in detail on the Rust PR itself, but in general it's similar to musl. Automatic verification has been implemented in the same manner as other targets, and it's been used locally to develop this PR and catch errors in the bindings already written (also to help match the evolving sysroot of wasi). The verification isn't hooked up to CI yet though because there is no wasi target distributed via rustup just yet, but once that's done I'll file a follow-up PR to execute verification on CI. [LINK]:
Showing
- ci/docker/wasm32-unknown-wasi/Dockerfile 69 additions, 0 deletionsci/docker/wasm32-unknown-wasi/Dockerfile
- ci/docker/wasm32-unknown-wasi/clang.sh 2 additions, 0 deletionsci/docker/wasm32-unknown-wasi/clang.sh
- libc-test/build.rs 69 additions, 4 deletionslibc-test/build.rs
- src/lib.rs 4 additions, 1 deletionsrc/lib.rs
- src/wasi.rs 792 additions, 0 deletionssrc/wasi.rs
Loading
Please register or sign in to comment