搜尋套件、儲存庫與 APP 分類

套件詳情v2.2.0

hooks

一個包含用於基於 JSON 協定的 Dart API 的程式庫,該協定用於 `hook/build.dart` 和 `hook/link.dart`。

AndroidiOSmacOSWindowsLinux
近 30 天下載
1520萬
喜歡數
42
Pub 分數
160

安裝套件

flutter pub add hooks

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

hooks 套件提供了一個 Dart API,用於與 `hook/build.dart` 和 `hook/link.dart` 使用的基於 JSON 的協定進行互動,從而實現 Dart 與其他語言(如 Python 和 Rust)之間的無縫整合。它促進了命令列工具和原生程式碼的互操作性,特別是在需要跨語言建構和連結流程的環境中。此套件是 Dart Native 生態系統的一部分,支援在 Android、iOS、macOS、Windows 和 Linux 上進行多平台開發。

適用情境

  • 跨語言建構整合
  • 原生程式碼連結
  • 用於語言互操作性的 CLI 工具
  • 多平台原生擴展
  • 使用外部工具進行建構自動化

主要特色

  • 基於 JSON 的協議支援
  • Dart API 用於建構/連結過程
  • 支援 Python 與 Rust 結合
  • 多平台相容性
  • Dart Native 生態系統的一部分

適合對象

  • 開發原生擴展的開發者
  • 工具鏈整合者
  • 跨語言項目維護者
  • CLI 工具開發者
  • 多平台建構系統

使用建議

  • 需要理解 Dart 原生協議
  • 主要針對進階使用案例
  • 僅限建構時作業
  • 不適用於執行時間應用程式邏輯
  • 依賴於 Dart 原生基礎設施

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

Coverage Status

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. issues pub package
data_assets This package contains the Dart API for data assets in hook/build.dart and hook/link.dart. issues pub package
ffi Utilities for working with Foreign Function Interface (FFI) code. issues pub package
ffigen Generator for FFI bindings, using LibClang to parse C, Objective-C, and Swift files. issues pub package
hooks This package contains the API for hook/build.dart and hook/link.dart. issues pub package
hooks_runner This package is the backend that invokes hook/build.dart and hook/link.dart from Dart and Flutter. issues pub package
jni A library to access JNI from Dart and Flutter that acts as a support library for package:jnigen. issues pub package
jni_flutter A library to access Flutter Android specific APIs from Dart. issues pub package
jni_util A library to access Flutter Android specific APIs from Dart. issues pub package
jnigen A Dart bindings generator for Java and Kotlin that uses JNI under the hood to interop with Java virtual machine. issues pub package
native_toolchain_c A library to invoke the native C compiler installed on the host machine. issues pub package
objective_c A library to access Objective C from Flutter that acts as a support library for package:ffigen. issues pub package
record_use Dart API to access @RecordUse() recorded usages in link hooks. issues pub package
swift2objc A tool for generating bindings that allow interop between Dart and Swift code. issues pub package
swiftgen A tool for generating bindings that allow interop between Dart and Swift code. issues pub package

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. pub package
native_toolchain_go A library to invoke the native Go compiler installed on the host machine. pub package
native_toolchain_ninja A library to invoke Ninja for Dart Native Assets. pub package
native_toolchain_rust A library to build and bundle Rust code for Dart Native Assets. pub package
native_toolchain_zig A library to build and bundle Zig code for Dart Native Assets. pub package

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.

所屬分類

依賴

依賴清單 6 項

原始碼儲存庫

使用此套件的專案