Update to the next version of the witx crate

This commit updates to the 0.9 version of the witx crate implemented in
WebAssembly/wasi#395. This new version drastically changes code
generation and how we interface with the crate. The intention is to
abstract the code generation aspects and allow code generators to
implement much more low-level instructions to enable more flexible APIs
in the future. Additionally a bunch of `*.witx` files were updated in
the WASI repository.

It's worth pointing out, however, that `wasi-common` does not change as
a result of this change. The shape of the APIs that we need to implement
are effectively the same and the only difference is that the shim
functions generated by wiggle are a bit different.
This commit is contained in:
Alex Crichton
2021-02-11 09:28:36 -08:00
committed by Andrew Brown
parent aed6de32d4
commit df9c725fa0
24 changed files with 510 additions and 806 deletions

13
Cargo.lock generated
View File

@@ -3499,18 +3499,18 @@ dependencies = [
[[package]]
name = "wast"
version = "22.0.0"
version = "32.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe1220ed7f824992b426a76125a3403d048eaf0f627918e97ade0d9b9d510d20"
checksum = "c24a3ee360d01d60ed0a0f960ab76a6acce64348cdb0bf8699c2a866fad57c7c"
dependencies = [
"leb128",
]
[[package]]
name = "wast"
version = "32.0.0"
version = "33.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c24a3ee360d01d60ed0a0f960ab76a6acce64348cdb0bf8699c2a866fad57c7c"
checksum = "1d04fe175c7f78214971293e7d8875673804e736092206a3a4544dbc12811c1b"
dependencies = [
"leb128",
]
@@ -3634,15 +3634,16 @@ dependencies = [
[[package]]
name = "witx"
version = "0.8.8"
version = "0.9.0"
dependencies = [
"anyhow",
"diff",
"log",
"pretty_env_logger",
"rayon",
"structopt",
"thiserror",
"wast 22.0.0",
"wast 33.0.0",
]
[[package]]