Skip to content

v0.2.1

Compare
Choose a tag to compare
@ydnar ydnar released this 26 Sep 18:29
· 242 commits to main since this release
b407035

Added

  • Generated structs and structs in package cm now include a HostLayout field in order to conform with the relaxed types proposal for GOARCH=wasm32. The cm.HostLayout type is an alias for structs.HostLayout on Go 1.23 or later, and a polyfill for Go 1.22 or earlier.
  • #163: added cm.F32ToU64() and cm.U64ToF32() for flattening f32 and u64 types in the Canonical ABI.
  • Test data from bytecodealliance/wit-bindgen/tests/codegen.

Fixed

  • #159: correctly escape all WIT keywords, including when used in package names.
  • #160: fixed the use of Go reserved keywords in function returns as result types.
  • #161: correctly handle constructor as a WIT keyword in wit.
  • #165: fixed use of imported types in exported functions.
  • #167: fixed a logic flaw in TestHasBorrow.
  • #170: resolve implied names for interface imports and exports in a world.
  • #175: generated correct symbol names for imported and exported functions in worlds ($root) or interfaces declared inline in worlds.