Skip to content

Commit

Permalink
Update WIT tooling used by Wasmtime (#5565)
Browse files Browse the repository at this point in the history
* Update WIT tooling used by Wasmtime

This commit updates the WIT tooling, namely the wasm-tools family of
crates, with recent updates. Notably:

* bytecodealliance/wasm-tools#867
* bytecodealliance/wasm-tools#871

This updates index spaces in components and additionally bumps the
minimum required version of the component binary format to be consumed
by Wasmtime (because of the index space changes). Additionally WIT
tooling now fully supports `use`.

Note that WIT tooling doesn't, at this time, fully support packages and
depending on remotely defined WIT packages. Currently WIT still needs to
be vendored in the project. It's hoped that future work with `cargo
component` and possible integration here could make the story about
depending on remotely-defined WIT more ergonomic and streamlined.

* Fix `bindgen!` codegen tests

* Add a test for `use` paths an implement support

* Update to crates.io versions of wasm-tools

* Uncomment codegen tests
  • Loading branch information
alexcrichton authored Jan 18, 2023
1 parent 9b896d2 commit 2478512
Show file tree
Hide file tree
Showing 35 changed files with 1,192 additions and 546 deletions.
41 changes: 22 additions & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ winch-codegen = { path = "winch/codegen", version = "=0.4.0" }

target-lexicon = { version = "0.12.3", default-features = false, features = ["std"] }
anyhow = "1.0.22"
wasmparser = "0.96.0"
wat = "1.0.52"
wast = "50.0.0"
wasmprinter = "0.2.45"
wasm-encoder = "0.20.0"
wasm-smith = "0.11.10"
wasm-mutate = "0.2.13"
wit-parser = "0.3"
wasmparser = "0.97.0"
wat = "1.0.53"
wast = "51.0.0"
wasmprinter = "0.2.46"
wasm-encoder = "0.21.0"
wasm-smith = "0.11.11"
wasm-mutate = "0.2.14"
wit-parser = "0.4"
windows-sys = "0.42.0"
env_logger = "0.9"
rustix = "0.36.0"
Expand Down
1 change: 1 addition & 0 deletions crates/component-macro/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ test = false
doctest = false

[dependencies]
anyhow = "1.0"
proc-macro2 = "1.0"
quote = "1.0"
syn = { version = "1.0", features = ["extra-traits"] }
Expand Down
Loading

0 comments on commit 2478512

Please sign in to comment.