7 releases

0.3.2+26.1 Oct 5, 2024
0.3.1+26.1 Jun 11, 2024
0.3.0+26.1 May 13, 2024
0.2.2+3.19.1 Feb 13, 2024
0.1.0 Dec 23, 2021

#631 in Encoding

Download history 4044/week @ 2024-08-16 3654/week @ 2024-08-23 3635/week @ 2024-08-30 2970/week @ 2024-09-06 3294/week @ 2024-09-13 2555/week @ 2024-09-20 2157/week @ 2024-09-27 3295/week @ 2024-10-04 2988/week @ 2024-10-11 2730/week @ 2024-10-18 2865/week @ 2024-10-25 2379/week @ 2024-11-01 2984/week @ 2024-11-08 2534/week @ 2024-11-15 2010/week @ 2024-11-22 2077/week @ 2024-11-29

10,090 downloads per month

Apache-2.0

37MB
789K SLoC

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

protobuf-native

crates.io CI Rust Documentation

A high-level, safe API for libprotobuf, the C++ implementation of Protocol Buffers, Google's data interchange format.

View documentation.

Installation

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

lib.rs:

High-level, safe bindings to libprotobuf, the C++ implementation of Protocol Buffers, Google's data interchange format.

Maintainership

This crate is maintained by Materialize. Contributions are encouraged:

Overview

This crate contains handwritten bindings to libprotobuf facilitated by cxx. The API that is exposed is extremely specific to the few users of this library and is subject to frequent change.

Depending on your use case, the auto-generated bindings in protobuf-sys may be more suitable.

API details

This section, as well as the documentation on individual types, is copied directly from the official C++ API reference, with a few modifications made as necessary.

Dependencies