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

bindings — Generated FFI Bindings #

Shows how to use the bindings CLI to generate Dart FFI bindings from Zig source automatically. The generated file provides typed structs and function bindings with no hand-written @Native annotations.

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.

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.

1
likes
160
points
69
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

args, code_assets, ffi, hooks, logging, meta, path

More

Packages that depend on native_toolchain_zig