4个版本

0.2.0+26.1 2024年5月13日
0.1.2+3.19.1 2021年12月24日
0.1.1+3.19.1 2021年12月23日
0.1.0+3.19.1 2021年12月23日

网络编程 中排名2080

Apache-2.0

37MB
787K 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 包仓库 Ruby 7K SLoC // 0.1% comments • Rust 包仓库 Rust 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-sys

crates.io CI Rust Documentation

对libprotobuf的低级绑定,这是Google数据交换格式Protocol Buffers的C++实现。

查看文档。

安装

# Cargo.toml
[dependencies]
protobuf-sys = "0.2.0"

lib.rs:

libprotobuf 的低级绑定,这是Google数据交换格式Protocol Buffers的C++实现。

维护

此包由 Materialize 维护。欢迎贡献

详细信息

这些类型的文档可以在官方的 C++ API参考 中找到。

这些绑定是由 autocxx 自动生成的。由于autocxx中缺少功能,许多类型和方法尚未实现。随着autocxx的改进,这些绑定也将得到改进。如果您发现autocxx可以为其生成绑定的新类型,请提交问题!

目前,autocxx在包的构建脚本中自动调用。这会在构建时通过 clang-sys 包创建对libclang的依赖。一旦绑定稳定,我们计划手动将生成的绑定提交到仓库以避免这种依赖。

根据您的用例,您可能更喜欢在 protobuf-native 中的手写绑定。

依赖项

~2.7–7MB
~133K SLoC