protobuf2

Crates.ioprotobuf2
lib.rsprotobuf2
version4.0.0-alpha.2
sourcesrc
created_at2022-08-23 06:36:28.918755
updated_at2022-08-23 06:53:34.86406
descriptionRust implementation of Google protocol buffers
homepagehttps://github.com/LYF1999/rust-protobuf/
repositoryhttps://github.com/LYF1999/rust-protobuf/
max_upload_size
id650796
size1,318,142
Yifei (LYF1999)

documentation

https://github.com/LYF1999/rust-protobuf/blob/protobuf2/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 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: 3156

cargo fmt