Android 14.0.0 Release 23 (UQ1A.240205.002.A1)
Merge "Upgrade protobuf to 3.2.0" am: 7dc275cd70 am: 9b9bcfecdd am: 7341fcb745 am: 45f0bf3bf0 am: f8e1c54d82

Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/protobuf/+/2520001

Change-Id: I23e659bc31ae03faa57c00251623489705ee1300
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
tree: 971c49e3e23c1508cd5d3449db1162011f57ccc6
  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. cargo2android.json
  11. cargo_1.out
  12. LICENSE.txt
  13. METADATA
  14. MODULE_LICENSE_MIT
  15. OWNERS
  16. README.md
  17. regenerate.sh
  18. 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