native_toolchain_zig 0.1.0
native_toolchain_zig: ^0.1.0 copied to clipboard
Zig support for Dart's build hooks. Automatically builds and bundles your Zig code with your Dart/Flutter application.
Examples #
zig_math — Simple Native Math Library #
A minimal example showing how to compile a Zig library and call its exported
functions from Dart via @Native FFI bindings.
zig_dart_api — Dart Native API & Isolate Communication #
Demonstrates integrating with dart_api_dl.h from Zig to pass messages between
Dart isolates and native code using Dart_NewNativePort_DL and Dart_PostCObject_DL.
zig_tcp — Cross-Platform Async TCP Sockets #
A full async TCP socket library with a Dart Connection/Listener API backed
by platform-native I/O (IOCP on Windows, io_uring on Linux, libuv elsewhere),
multi-isolate support, and GC-safe handle lifecycle management.