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

套件詳情v0.19.6

native_toolchain_c

一個庫,用於調用主機上安裝的原生 C 編譯器。

AndroidiOSmacOSWindowsLinux
近 30 天下載
447萬
喜歡數
27
Pub 分數
150

安裝套件

flutter pub add native_toolchain_c

套件介紹

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

一個 Flutter/Dart 套件,可呼叫主機上安裝的原生 C 編譯器。它在 Dart 與系統級 C 工具鏈之間提供橋樑,讓開發者能直接從 Dart 應用程式編譯 C 程式碼。這對於效能關鍵任務或將現有的 C 庫整合到 Flutter 專案中特別有用。該套件支援多個平台,包括 Android、iOS、macOS、Windows 和 Linux,確保跨平台相容性。它是 Dart Native 生態系統的一部分,專為底層系統整合而設計。

適用情境

  • 在執行時編譯C程式碼
  • 整合遺留的 C 庫
  • 效能關鍵的計算
  • 跨平台原生建構
  • 系統級開發

主要特色

  • 對原生 C 編譯器的直接存取
  • 跨平台支援
  • 與 Dart 的無縫整合
  • 支援 Android、iOS、macOS、Windows、Linux
  • Dart Native 生態系統的一部分

適合對象

  • 使用C庫的開發人員
  • 需要高性能原生代碼的項目
  • 跨平台原生工具
  • 高級 Flutter 結合
  • 系統級應用開發

使用建議

  • 需要在主機上安裝C編譯器
  • 平台特定的編譯行為
  • 僅限具備原生工具鏈的系統
  • 可能需要為 CI/CD 進行額外設定
  • 不適合簡單的應用邏輯

原始 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.

所屬分類

依賴

依賴清單 8 項

原始碼儲存庫

使用此套件的專案