6个版本

0.3.1+26.1 2024年6月11日
0.3.0+26.1 2024年5月13日
0.2.2+3.19.1 2024年2月13日
0.2.1+3.19.1 2022年1月18日
0.1.0 2021年12月23日

#362编码

Download history · Rust 包仓库 3396/week @ 2024-04-26 · Rust 包仓库 4306/week @ 2024-05-03 · Rust 包仓库 4613/week @ 2024-05-10 · Rust 包仓库 4236/week @ 2024-05-17 · Rust 包仓库 2873/week @ 2024-05-24 · Rust 包仓库 2848/week @ 2024-05-31 · Rust 包仓库 2870/week @ 2024-06-07 · Rust 包仓库 2793/week @ 2024-06-14 · Rust 包仓库 2890/week @ 2024-06-21 · Rust 包仓库 2910/week @ 2024-06-28 · Rust 包仓库 2548/week @ 2024-07-05 · Rust 包仓库 3360/week @ 2024-07-12 · Rust 包仓库 3127/week @ 2024-07-19 · Rust 包仓库 3103/week @ 2024-07-26 · Rust 包仓库 4113/week @ 2024-08-02 · Rust 包仓库 3284/week @ 2024-08-09 · Rust 包仓库

14,215 每月下载量

Apache-2.0

37MB
789K SLoC

C++ 321K SLoC // 0.1% comments · Rust 包仓库 C# 150K SLoC // 0.1% comments · Rust 包仓库 Java 86K SLoC // 0.2% comments · Rust 包仓库 C 64K SLoC // 0.1% comments · Rust 包仓库 Objective-C 52K SLoC // 0.1% comments · Rust 包仓库 Bazel 29K SLoC // 0.1% comments · Rust 包仓库 Python 24K SLoC // 0.3% comments · Rust 包仓库 Bitbake 22K SLoC // 0.0% comments · Rust 包仓库 PHP 17K SLoC // 0.3% comments · Rust 包仓库 Rust 8K SLoC // 0.1% comments · Rust 包仓库 Ruby 7K SLoC // 0.1% comments · Rust 包仓库 Kotlin 2.5K SLoC // 0.1% comments · Rust 包仓库 Shell 2K SLoC // 0.2% comments · Rust 包仓库 Lua 1.5K SLoC // 0.1% comments · Rust 包仓库 Swift 350 SLoC // 0.1% comments · Rust 包仓库 Go 307 SLoC // 0.1% comments · Rust 包仓库 Dart 182 SLoC // 0.0% comments · Rust 包仓库 Batch 158 SLoC // 0.3% comments · Rust 包仓库 Emacs Lisp 85 SLoC // 0.5% comments · Rust 包仓库 Vim Script 71 SLoC // 0.2% comments · Rust 包仓库 Visual Studio Solution 53 SLoC · Rust 包仓库 AWK 33 SLoC // 0.1% comments · Rust 包仓库 Objective-C++ 15 SLoC // 0.6% comments · Rust 包仓库 PowerShell 8 SLoC // 0.4% comments · Rust 包仓库 M4 7 SLoC · Rust 包仓库 NuGet Config 6 SLoC · Rust 包仓库

protobuf-native

crates.io CI Rust Documentation

libprotobuf的高级、安全API,是Google的数据交换格式Protocol Buffers的C++实现。

查看文档。

安装

# Cargo.toml
[dependencies]
protobuf-native = "0.3.1"

lib.rs:

Protocol Buffers,Google的数据交换格式,提供高级、安全的绑定libprotobuf

维护者

该crate由Materialize维护。鼓励贡献。

概览

此crate包含由cxx辅助的手写绑定到libprotobuf。暴露的API非常特定于少数库用户,并且经常发生变化。

根据您的用例,protobuf-sys中自动生成的绑定可能更合适。

API细节

本节以及个别类型的文档直接从官方的C++ API参考复制,并根据需要进行了少量修改。

依赖