#api-bindings #native #protocol-buffers

protobuf-native

A high-level, safe API for libprotobuf

3 unstable releases

0.2.1+3.19.1 Jan 18, 2022
0.2.0+3.19.1 Jan 18, 2022
0.1.0 Dec 23, 2021

#1126 in Encoding

Download history 11284/week @ 2023-08-05 9901/week @ 2023-08-12 7682/week @ 2023-08-19 9974/week @ 2023-08-26 9976/week @ 2023-09-02 7764/week @ 2023-09-09 7372/week @ 2023-09-16 5234/week @ 2023-09-23 3595/week @ 2023-09-30 8115/week @ 2023-10-07 7754/week @ 2023-10-14 8741/week @ 2023-10-21 7591/week @ 2023-10-28 7155/week @ 2023-11-04 6866/week @ 2023-11-11 6280/week @ 2023-11-18

29,317 downloads per month

Apache-2.0

12MB
247K SLoC

C++ 206K SLoC // 0.1% comments Shell 25K SLoC // 0.2% comments Python 4K SLoC // 0.4% comments Automake 3.5K SLoC // 0.1% comments C 2.5K SLoC // 0.2% comments Visual Studio Project 2K SLoC Rust 1.5K SLoC // 0.1% comments Java 741 SLoC // 0.1% comments Prolog 476 SLoC // 0.1% comments Go 307 SLoC // 0.1% comments Ruby 267 SLoC // 0.1% comments Visual Studio Solution 187 SLoC Objective-C 177 SLoC // 0.3% comments PHP 103 SLoC Dart 89 SLoC // 0.1% comments Emacs Lisp 86 SLoC // 0.5% comments Vim Script 71 SLoC // 0.2% comments Xcode Config 13 SLoC // 0.6% comments

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.2.1+3.19.1"

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

~0.8–10MB
~102K SLoC