Expand description

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.

Modules

Implementation of the Protocol Buffer compiler.

Auxiliary classes used for I/O.

Structs

Describes a type of protocol message, or a particular group within a message.

Used to construct descriptors.

Describes a message type.

Describes a whole .proto file.

Describes a complete .proto file.

The protocol compiler can output a file descriptor set containing the .proto files it parses.

An operation failed.

Traits

Abstract interface for a database of descriptors.

Abstract interface for protocol messages.

Interface to light weight protocol messages.