Platform Tools Release 34.0.5 (10900879)
Snap for 10900817 from 17342c31c8555a3b42d23487e12ac103e21b334f to sdk-release

Change-Id: Ib97d8c87727170ebea06414b700d506e110a92a1
tree: 3acbd23b39d115c06ce860bb0caa19b801291245
  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