Bug: 158620525

Clone this repo:
  1. da59a67 Migrate to cargo_embargo. am: 7994f86262 am: 4af4d955be am: 3a9232a13b by Andrew Walbran · 5 months ago emu-34-2-dev main master
  2. 3a9232a Migrate to cargo_embargo. am: 7994f86262 am: 4af4d955be by Andrew Walbran · 5 months ago
  3. 827b9a7 Migrate to cargo_embargo. am: 7994f86262 am: 6f102d68a9 am: 448ecb7a6d by Andrew Walbran · 5 months ago
  4. 448ecb7 Migrate to cargo_embargo. am: 7994f86262 am: 6f102d68a9 by Andrew Walbran · 5 months ago
  5. 4af4d95 Migrate to cargo_embargo. am: 7994f86262 by Andrew Walbran · 5 months ago

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