ffigen_js 0.0.16-pre
ffigen_js: ^0.0.16-pre copied to clipboard
ffigen, but for Javascript/WebAssembly interop bindings
0.0.16-pre #
- First release published via GitHub Actions OIDC automated publishing.
- No code changes since
0.0.15-pre.
0.0.15-pre #
- Parses headers with the
wasm32-unknown-emscriptentarget by default, so target-dependent C types (size_t,long, ...) resolve with the Wasm ABI instead of the host ABI (e.g.size_twas 64-bit and generated mismatchedJSBigIntbindings on 64-bit hosts). Override withcompiler-opts: ['-target', '<other-triple>']. - Disables the automatic macOS SDK include paths by default
(
compiler-opts-automatic.macos.include-c-standard-librarynow defaults tofalse): they use the host ABI and conflict with the wasm32 target. Wasm headers getstddef.h/stdint.h/stdbool.hfrom clang's built-in headers. Opt back in withcompiler-opts-automatic.macos.include-c-standard-library: true. - Fixes standalone enum emission: named enums at the translation-unit root
were routed through the macro-deferral path and only emitted when an
included function signature referenced their type. They now go through the
type extractor (matching upstream
ffigen), so enums that appear only as bitmask constants (no typed signature reference) are emitted as well.
0.0.14-pre #
- Restores the generated API and output behavior from
0.0.12-pre. - Preserves the typed-data
.addressfixes introduced in0.0.13-pre, including support forInt64List.
0.0.13-pre #
- Fixes
.addressfor typed lists backed by the Emscripten heap. - Adds typed-data address coverage to the bundled Emscripten example.