Stream: git-wasmtime

Topic: wasmtime / PR #5317 Add a `wasmtime::component::bindgen!`...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 22 2022 at 19:49):

alexcrichton opened PR #5317 from merge-wit-bindgen to main:

This PR represents merging the wit-bindgen-gen-host-wasmtime-rust crate from the wit-bindgen repository into this repository. This is made possible by recent infrastructural work around movement of the dependencies involved here, and this is the final process of extracting the macro to this repository. This commit creates a bindgen! macro in the wasmtime::component submodule. which is the wit_bindgen_host_wasmtime_rust::generate macro, more-or-less.

A new crates/wit-bindgen folder is created here with a wasmtime-wit-bindgen crate which is the current contents of the generation in the wit-bindgen repsitory. I opted to not merge the full history here since recent revisions by Pat have removed most of the historical support of lifting/lowering/async/etc so the history isn't really all that interesting. Additionally parts of the wit-bindgen-core and various other crates were merged in here and adapted to just work for this wasmtime generator.

This is intended to be the "final" interface for how developers will work with *.wit files and Wasmtime. This bindgen! macro takes in a *.wit file and will, hopefully, forevermore be how this all works. This is all included in the wasmtime crate when the component-model feature is enabled. Further development of this macro is expected to happen in this repository, not externally. I'll in short order delete the sources in the wit-bindgen repository in favor of the sources here.

Tests have been migrated here, mostly the codegen ones. Otherwise though the component model is already thoroughly tested so the runtime/*/host.rs tests were not migrated. A few small ones have been added to ensure that the generated structure works but otherwise testing is largely left to the already tested embedding API.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 22 2022 at 20:01):

alexcrichton updated PR #5317 from merge-wit-bindgen to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 22 2022 at 20:01):

alexcrichton updated PR #5317 from merge-wit-bindgen to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 22 2022 at 20:15):

alexcrichton updated PR #5317 from merge-wit-bindgen to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 29 2022 at 21:42):

alexcrichton updated PR #5317 from merge-wit-bindgen to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 30 2022 at 16:46):

alexcrichton updated PR #5317 from merge-wit-bindgen to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 01 2022 at 19:38):

alexcrichton requested pchickey for a review on PR #5317.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 16:19):

alexcrichton updated PR #5317 from merge-wit-bindgen to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 16:21):

alexcrichton updated PR #5317 from merge-wit-bindgen to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 19:00):

pchickey submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 19:06):

alexcrichton merged PR #5317.


Last updated: Dec 23 2024 at 12:05 UTC