Skip to content

Track: wit-bindgen MoonBit s8/s16 value corruption (upstream #1518) #325

@avrabe

Description

@avrabe

Upstream Issue

bytecodealliance/wit-bindgen#1518

Problem

wit-bindgen's MoonBit bindings corrupt s8 and s16 values during lift operations.

Impact on rules_wasm_component

  • Affects moonbit_wasm_component rule
  • Any WIT interface using s8 or s16 types will have incorrect values

Affected Rule

  • //moonbit:defs.bzl - moonbit_wasm_component

Workaround

Use s32 or u32 instead of s8/s16 until upstream fix lands.

Action Items

  • Add integration test to catch this regression
  • Monitor upstream fix
  • Update wit-bindgen when fix released

Labels

upstream-bug, moonbit

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions