internal/wasi: update to wasm-tools-go@v0.1.2 #4326
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This updates the "vendor" submodule of
wasm-tools-go
and regenerates the WASI 0.2 bindings with the most recent version ofwit-bindgen-go
. Full release notes on the changes:v0.1.2 — 2024-07-05
Added
flags
andvariant
types.result
andvariant
will now panic if caller passes an invalid case.variant
andflags
cases.Removed
cm
: Removed unused functionsReinterpret2
,LowerResult
,LowerBool
,BoolToU64
,S64ToF64
.cm
: Removed unused experimentalflags
implementation behind a build tag.Fixed
result
with no error type will now correctly setIsErr
.v0.1.1 — 2024-07-04
This release changes the memory layout of
variant
andresult
types to permit passing these types on the stack safely. This required breaking changes to packagecm
, detailed below, as well as slightly more verbose type signatures for WIT functions that return a typedresult
.Breaking Changes
cm.Result
is nowcm.BoolResult
.cm.OKResult
andcm.ErrResult
have been removed, replaced with a more generalizedcm.Result[Shape, OK, Err]
type.Added
time-EOD
will result in the Go nameTimeEOD
.OK
is now a predefined initialism. For example, the WIT namestate-ok
would previously translate into the Go nameStateOk
instead of the idiomaticStateOK
.Fixed
wit-bindgen-go
now correctly generates packeddata
shape types forvariant
andresult
types.Shape
andAlign
type parameters in the functionscm.New
andcm.Case
for manipulatingvariant
types.variant
instead ofresult
in panic messages.