SKILL12.1K installs530

Dart Setup Ffi Assets

Guides agents in compiling and packaging C/C++ source code into dynamic or static libraries (Code Assets) using Dart's Native Assets hook system (via hook/build.dart and hook/link.dart utilizing package:hooks and package:native_toolchain_c). Use when a user asks to: 'setup native assets', 'compile C/C++ source code', 'bundle dynamic libraries', 'build native C code', 'link native assets', 'implement build.dart or link.dart hooks', or 'integrate C/C++ interop in Dart/Flutter'. Helps agents avoid manual toolchain orchestration and configures secure hash-validated binary downloads or advanced linker tree-shaking with package:record_use mapping.

Type
Skill
Author
dart-lang
GitHub stars
530
Installs
12.1K
Last updated
October 16, 2026

Install

npx skills add https://github.com/dart-lang/skills --skill dart-setup-ffi-assets

About this skill

Guides agents through compiling and packaging C/C++ into dynamic or static libraries using Dart's Native Assets hook system, via hook/build.dart and hook/link.dart with package:hooks and package:native_toolchain_c. It handles tasks like setting up native assets, bundling libraries, and integrating C/C++ interop in Dart or Flutter. It also configures hash-validated binary downloads and linker tree-shaking with package:record_use, so agents can avoid manual toolchain orchestration.

Summary written with AI assistance from the project's public description.


Categories


More from dart-lang


Similar Skills