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

套件詳情v6.1.0

protobuf

協議緩衝區支援的執行時間庫。與 package:protoc_plugin 一起使用,以產生您的 '.proto' 檔案的 Dart 程式碼。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
309萬
喜歡數
256
Pub 分數
150

安裝套件

flutter pub add protobuf

套件介紹

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

protobuf 套件為 Dart 提供了 Protocol Buffers 的執行時支援,可實現結構化資料的高效序列化與反序列化。它與 protoc_plugin 搭配使用,能從 .proto 定義檔產生 Dart 類別,確保跨平台的類型安全且效能優異的資料交換。適用於需要高效率資料通訊的應用程式,例如 API、微服務或即時系統。此套件相容所有主要平台,包含 Android、iOS、Web、macOS、Windows 與 Linux。

適用情境

  • API 數據序列化
  • 跨平台資料交換
  • 即時通訊系統
  • 微服務後端整合
  • 高效二進位資料儲存

主要特色

  • 類型安全的程式碼產生
  • 高效能序列化
  • 跨平台相容性
  • 支援 .proto 檔案定義
  • 最小的執行時開銷

適合對象

  • 開發可擴展的 API 的開發者
  • 在工作流程中使用 Protocol Buffers 的 Teams
  • 需要緊湊資料格式的應用程式
  • 跨平台移動和網頁應用
  • 高吞吐量數據處理系統

使用建議

  • 需要使用 protoc_plugin 進行設置
  • 需要 .proto 檔案以進行程式碼產生
  • 限制為 Protocol Buffers 格式
  • 在模式變更後手動更新
  • Protocol Buffers 語法的學習曲線

原始 README

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

Protobuf support for Dart

Protocol Buffers (protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data.

This repository is home to packages related to protobuf support for Dart.

Package Description Published Version
protobuf Runtime library for protocol buffers support. pub package
protoc_plugin A protobuf protoc compiler plugin used to generate Dart code. pub package
benchmarks Benchmarks for various protobuf functions.

Publishing automation

For information about our publishing automation and release process, see https://github.com/dart-lang/ecosystem/wiki/Publishing-automation.

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案