Skip to content

v0.2.3

Compare
Choose a tag to compare
@github-actions github-actions released this 05 Oct 23:30
· 272 commits to main since this release
1d46fbc

Added

  • wit-bindgen-go generate now accepts a remote registry reference to pull down a WIT package and generate the Go code. Example: wit-bindgen-go generate ghcr.io/webassembly/wasi/http:0.2.0.

Changed

  • cm.List now stores list length as a uintptr, permitted by the Go wasm types proposal. It was previously a uint, which was removed from the list of permitted types. There should be no change in the memory layout in TinyGo GOARCH=wasm or Go GOARCH=wasm32 using 32-bit pointers.
  • The helper functions cm.NewList, cm.LiftList, and cm.LiftString now accept any integer type for len, defined as cm.AnyInteger.
  • cm.Option[T].Value() method now value receiver (not pointer receiver), so it can be chained.