Bug: 158620525

Clone this repo:
  1. 344c90c Update Android.bp by running cargo_embargo am: 230522dee7 by James Farrell · 4 weeks ago main master
  2. f53c993 Update Android.bp by running cargo_embargo am: 9c1f69d734 by James Farrell · 4 weeks ago
  3. 230522d Update Android.bp by running cargo_embargo by James Farrell · 4 weeks ago
  4. 9c1f69d Update Android.bp by running cargo_embargo by James Farrell · 4 weeks ago
  5. da59a67 Migrate to cargo_embargo. am: 7994f86262 am: 4af4d955be am: 3a9232a13b by Andrew Walbran · 6 months ago emu-34-2-dev

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