alexcrichton opened PR #2659 from witx-next to main:
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*.witxfiles were updated in
the WASI repository.It's worth pointing out, however, that
wasi-commondoes 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.
alexcrichton requested pchickey for a review on PR #2659.
pchickey submitted PR Review.
pchickey created PR Review Comment:
good catch!!
pchickey submitted PR Review.
pchickey submitted PR Review.
alexcrichton updated PR #2659 from witx-next to main.
alexcrichton submitted PR Review.
alexcrichton created PR Review Comment:
@pchickey do you have thoughts on adding back the to/from abi repr traits? I originally removed them because I figured it was good to trim things down to just the in-memory type to avoid too many conversions being available, but it ended up showing up a good amount in tests.
pchickey submitted PR Review.
pchickey created PR Review Comment:
I'm fine with either - using
asin tests is OK with me, or maybe we should dotypes::Errno::try_from(res).unwrap()on the lhs? If you don't want to provide too manyFromimpls maybe define aFromAbitrait in wiggle that has the same shape, but has docs saying its just for wiggle use?
alexcrichton updated PR #2659 from witx-next to main.
alexcrichton updated PR #2659 from witx-next to main.
alexcrichton updated PR #2659 from witx-next to main.
alexcrichton updated PR #2659 from witx-next to main.
alexcrichton updated PR #2659 from witx-next to main.
pchickey submitted PR Review.
abrown submitted PR Review.
abrown merged PR #2659.
Last updated: Dec 06 2025 at 06:05 UTC