| commit | 50f28f21e0e1eed15ad56a0b9c2d6a255fc64c50 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Apr 14 03:01:33 2023 +0000 |
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Apr 14 03:01:33 2023 +0000 |
| tree | 971c49e3e23c1508cd5d3449db1162011f57ccc6 | |
| parent | db02a6c73af6bd09b7214f7d1ab61e9b13daf6bb [diff] | |
| parent | d1bb8f2216f3887b64d180cb9b7404fa45aa83df [diff] |
Snap for 9939584 from 45f0bf3bf0b816709a0685db2ee6b6381a2683e5 to udc-release am: d1bb8f2216 Original change: https://googleplex-android-review.googlesource.com/c/platform/external/rust/crates/protobuf/+/22638111 Change-Id: I13670990a3fa5ace5eb6ac97fa0725a3ca80ef58 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.
protobuf-json-mapping implements JSON parsing and serialization for protobuf messages.protobuf-codegen can be used to rust code from .proto crates.protoc-bin-vendored contains protoc command packed into the crate.protobuf-parse contains .proto file parser. Rarely need to be used directly, but can be used for mechanical processing of .proto files.