protobuf

Crates.ioprotobuf
lib.rsprotobuf
version3.5.0
sourcesrc
created_at2014-11-21 00:30:41.855088
updated_at2024-06-26 15:32:53.146736
descriptionRust implementation of Google protocol buffers
homepagehttps://github.com/stepancheg/rust-protobuf/
repositoryhttps://github.com/stepancheg/rust-protobuf/
max_upload_size
id198
size1,334,297
(honglooker)

documentation

https://github.com/stepancheg/rust-protobuf/blob/master/README.md

README

Library to read and write protocol buffers data

Features

This crate has one feature, which is with-bytes.

with-bytes enables protobuf crate support for bytes crate: when parsing bytes or strings from bytes::Bytes, protobuf will be able to reference the input instead of allocating subarrays.

Note, codegen also need to be instructed to generate Bytes or Chars for bytes or string protobuf types instead of default Vec<u8> or String, just enabling option on this crate is not enough.

See Customize struct in protobuf-codegen crate.

Accompanying crates

  • protobuf-json-mapping implements JSON parsing and serialization for protobuf messages.
  • protobuf-codegen can be used to generate rust code from .proto crates.
  • protoc-bin-vendored contains protoc command packed into the crate.
  • protobuf-parse contains .proto file parser. Rarely need to be used directly, but can be used for mechanical processing of .proto files.
Commit count: 3207

cargo fmt