原生
與原生互操作和外部函數介面相關的 Dart 套件。包含用於產生其他程式語言繫結的程式碼產生器,以及與封裝原生程式碼的鈎子系統相關的套件。
- 星標
- 274
- 分支
- 147
- 最近推送(UTC)
- 2026年9月18日
- 專案狀態
- 未封存
原始 README
以下為英文專案原文快照,最新內容請造訪 GitHub。
Overview
This repository is home to Dart packages related to FFI and native assets building and bundling.
Documentation
See the doc directory for more documentation.
Packages
| Package | Description | Issues | Version |
|---|---|---|---|
| code_assets | This package contains the Dart API for code assets in hook/build.dart and hook/link.dart. |
||
| data_assets | This package contains the Dart API for data assets in hook/build.dart and hook/link.dart. |
||
| ffi | Utilities for working with Foreign Function Interface (FFI) code. | ||
| ffigen | Generator for FFI bindings, using LibClang to parse C, Objective-C, and Swift files. | ||
| hooks | This package contains the API for hook/build.dart and hook/link.dart. |
||
| hooks_runner | This package is the backend that invokes hook/build.dart and hook/link.dart from Dart and Flutter. |
||
| jni | A library to access JNI from Dart and Flutter that acts as a support library for package:jnigen. | ||
| jni_flutter | A library to access Flutter Android specific APIs from Dart. | ||
| jni_util | A library to access Flutter Android specific APIs from Dart. | ||
| jnigen | A Dart bindings generator for Java and Kotlin that uses JNI under the hood to interop with Java virtual machine. | ||
| native_toolchain_c | A library to invoke the native C compiler installed on the host machine. | ||
| objective_c | A library to access Objective C from Flutter that acts as a support library for package:ffigen. | ||
| record_use | Dart API to access @RecordUse() recorded usages in link hooks. |
||
| swift2objc | A tool for generating bindings that allow interop between Dart and Swift code. | ||
| swiftgen | A tool for generating bindings that allow interop between Dart and Swift code. |
External packages
Packages not on this repo but also related to FFI and native assets. ❤️
| Package | Description | Version |
|---|---|---|
| native_toolchain_cmake | A library to invoke CMake for Dart Native Assets. | |
| native_toolchain_go | A library to invoke the native Go compiler installed on the host machine. | |
| native_toolchain_ninja | A library to invoke Ninja for Dart Native Assets. | |
| native_toolchain_rust | A library to build and bundle Rust code for Dart Native Assets. | |
| native_toolchain_zig | A library to build and bundle Zig code for Dart Native Assets. |
Publishing automation
For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.
For additional information about contributing, see our contributing page.
語言DartCJavaObjective-CKotlinSwiftC++CMakeRubyNixRustLinker Script
使用的依賴
依賴清單 5 項
- args開發依賴
^2.7.0 - dart_flutter_team_lints開發依賴
^3.5.2 - dependency_validator開發依賴
^5.1.0 - path開發依賴
^1.9.1 - yaml開發依賴
^3.1.3
如何選擇適合專案的儲存庫?
先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。
- 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
- 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
- 使用前在 GitHub 確認 README、授權條款與 Issues。
來源與維護
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗