dart-setup-ffi-assets

Official

Automate building native C assets for Dart FFI.

Authordart-lang
Version1.0.0
Installs0

System Documentation

What problem does it solve?

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) with secure download options, tree-shaking, and runtime integration.

Core Features & Use Cases

  • Automates local C/C++ compilation to platform-specific dynamic libraries using hook/build.dart and native_toolchain_c.
  • Applies dead-code elimination and symbol-based tree-shaking during linking to minimize binary size.
  • Supports precompiled dynamic library downloads with integrity verification for offline or constrained environments.
  • Includes verification steps for offline compliance and runtime integration tests.

Quick Start

Run the build and link hooks to compile local C sources into Code Assets and verify tree-shaking and offline fallback behavior.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dart-setup-ffi-assets
Download link: https://github.com/dart-lang/skills/archive/main.zip#dart-setup-ffi-assets

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.