wasi: Update and Fix Travis failures#126
Conversation
|
Could you provide more details? I'm able to build this crate and run all the tests with wasm32-wasi with both stable and nightly Rust. |
Sorry it's not building that's a problem, it's running the code. I keep getting a "Import module wasi_snapshot_preview1 was not found" even when using the never versions of wasi (like 0.9.0). |
Signed-off-by: Joe Richey <[email protected]>
Looks like the issue was that the runner version (not the library version) which was causing issues. Let's see if this fixes things. |
We are now no longer using an interface explictly marked "unstable". Signed-off-by: Joe Richey <[email protected]>
It looks like Rust is now shipping a different version of the WASI toolchain. This toolchain now requires the corresponding runner to have
wasi_snapshot_preview1as part of its environment.Updating the version of the wasi runner to
0.8allows us to run the binaries created by newer Rust toolchains. See: bytecodealliance/wasi-rs#37We also update the
wasiversion to0.9to get on a stable interface. This requires us to useunsafeagain (as the current API does not have slice-based helpers anymore). The new API also gets ride oferror_str, so we have to go thoughwasi::Error.CC: @sunfishcode
Signed-off-by: Joe Richey [email protected]