flutter_zig_bridge 0.1.1 copy "flutter_zig_bridge: ^0.1.1" to clipboard
flutter_zig_bridge: ^0.1.1 copied to clipboard

A Flutter package bridging Dart and Zig via FFI. Automatically compiles Zig code during the Flutter build using Dart build hooks.

Changelog #

0.1.1 #

  • Breaking free of native_toolchain_zig — replaced with a self-contained ~140-line build hook. Eliminates the meta ^1.18 version conflict that blocked clean dependency resolution.
  • Linux support fix — explicitly link libc in build.zig so std.heap.c_allocator works on Linux (macOS links it implicitly).
  • GitHub Actions CI — automated testing on ubuntu + macOS for both Zig and Flutter tests, plus a dart pub publish --dry-run check.
  • Expanded test suite — 41 Dart tests + 10 Zig tests covering i32 boundaries, fib(92), CJK/emoji/accented string reversal, 1000-char stress tests, and double-reverse roundtrips.
  • Minimal example — added example/lib/minimal.dart for quick-start usage.
  • Added topics field for pub.dev discoverability.
  • Updated README with badges, expanded examples, and testing instructions.

0.1.0 #

  • Initial release
  • Arithmetic operations: add, multiply
  • Fibonacci computation
  • Unicode-aware string reversal
  • Automatic Zig compilation via Dart build hooks
  • Cross-platform support (macOS, iOS, Android, Linux, Windows)
0
likes
150
points
145
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package bridging Dart and Zig via FFI. Automatically compiles Zig code during the Flutter build using Dart build hooks.

Repository (GitHub)
View/report issues

Topics

#zig #ffi #interop #native-assets

License

MIT (license)

Dependencies

code_assets, ffi, flutter, hooks, logging, path

More

Packages that depend on flutter_zig_bridge