Support dart2wasm / Flutter --wasm via wasm_ffi 2.4.0 - #2
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Updates
universal_ffito consumewasm_ffi: ^2.4.0to inherit full WebAssembly compatibility for applications compiled withdart2wasmand Flutter Web--wasm.References:
vm75/wasm_ffiissue #13vm75/wasm_ffiPR #12wasm_ffi 2.4.0Exact Dependency Change
wasm_fficonstraint inpubspec.yamlfrom^2.3.0to^2.4.0.^3.10.8).Production Code Changes
lib/. The clean facade architecture ofuniversal_ffiseamlessly delegates WebAssembly loading, exports discovery, and 64-bit BigInt marshalling towasm_ffi 2.4.0without requiring duplicate wrappers.Exact Tooling Versions Tested
3.10.8 (stable) (Tue Jan 27 00:02:04 2026 -0800) on 'linux_x64'3.38.9 (channel stable)151.0.7922.75 Arch Linuxv25.8.1Validation Commands Run
Runtime Test Results
emscripten/native_example.jsandstandalone/native_example.wasmwere loaded, looking up functions and successfully executing string conversions, size checks, and C++ static initialization.--wasm/ dart2wasm): PASS. Verified end-to-end function invocation and C++ static init in Chromium headless browser for both standalone Wasm and Emscripten modules..wasmfunction lookup, 32-bit addition, 64-bit BigInt addition, and pointer memory read/writes viaFfiHelper.safeUsing.FfiHelper.CI Changes
.github/workflows/publish.ymlso validation is not skipped..github/workflows/ci.ymlfor automated PR and push validation across formatting, analysis, VM tests, package dry-run, and Flutter Web (dart2js&--wasm) builds.Version and CHANGELOG
1.5.1inpubspec.yaml.CHANGELOG.mdwith 1.5.1 release notes.README.mdandAGENTS.md.Package Publication