Bug: 158620525

Clone this repo:
  1. 320376a Migrate protobuf and protobuf-codegen to monorepo. by James Farrell · 3 months ago main master
  2. 9edeff1 Remove cargo_1.out to make contents match crate archive. by James Farrell · 3 months ago
  3. 8f7ce35 Migrate v2.27 of protobuf and protobuf-codegen to monorepo. by James Farrell · 3 months ago
  4. 8862c01 Use cargo_embargo to update Android.bp and rules.mk by Inseob Kim · 3 months ago
  5. b2be755 Fix license rules for protobuf-2.27.1. by James Farrell · 3 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