Migrate v2.27 of protobuf and protobuf-codegen to monorepo.

These go in the "extra versions" managed repo.

Bug: http://b/339424309
Test: treehugger
Change-Id: I664819b645f35dbac58965f13eb1c7440a851b62
3 files changed
tree: 322b5a81b5ef504654c1c3fcb86617d39f54f762
  1. 2.27.1/
  2. benches/
  3. out/
  4. src/
  5. .cargo_vcs_info.json
  6. Android.bp
  7. build.rs
  8. Cargo.toml
  9. Cargo.toml.orig
  10. cargo2rulesmk.json
  11. cargo_1.out
  12. cargo_embargo.json
  13. LICENSE.txt
  14. METADATA
  15. MODULE_LICENSE_MIT
  16. OWNERS
  17. README.md
  18. regenerate.sh
  19. rules.mk
  20. TEST_MAPPING
README.md

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