native_toolchain_zig 0.1.0 copy "native_toolchain_zig: ^0.1.0" to clipboard
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.

example/README.md

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.

0
likes
160
points
111
downloads

Documentation

API reference

Publisher

verified publisherykmnkmi.kz

Weekly Downloads

Zig support for Dart's build hooks. Automatically builds and bundles your Zig code with your Dart/Flutter application.

Repository (GitHub)
View/report issues

Topics

#zig #ffi #interop #native-assets #native-toolchain

License

MIT (license)

Dependencies

code_assets, ffi, hooks, logging, meta, path

More

Packages that depend on native_toolchain_zig