Bug: 158620525

Clone this repo:
  1. 7dc275c Merge "Upgrade protobuf to 3.2.0" by Treehugger Robot · 8 weeks ago main master android-u-beta-1-gpl
  2. a0938c3 Upgrade protobuf to 3.2.0 by Jeff Vander Stoep · 9 weeks ago
  3. c5abb32 [LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/protobuf by Bob Badour · 2 months ago
  4. 158191e Introduce libprotobuf_deprecated by Jeff Vander Stoep · 2 months ago
  5. a389dee Make protobuf available to product and vendor am: 9dc431f28f by Matthew Maurer · 3 months ago

Library to read and write protocol buffers data


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