commit | 2eb9e3967a2aca32e176fddb9e387e1a20a31cf9 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Wed Apr 12 21:42:41 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Apr 12 21:42:41 2023 +0000 |
tree | 971c49e3e23c1508cd5d3449db1162011f57ccc6 | |
parent | 792e2bd17abdebad6f3b1c2eaa576595d8fb564f [diff] | |
parent | 45f0bf3bf0b816709a0685db2ee6b6381a2683e5 [diff] |
Merge "Upgrade protobuf to 3.2.0" am: 7dc275cd70 am: 9b9bcfecdd am: 7341fcb745 am: 45f0bf3bf0 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/protobuf/+/2520001 Change-Id: I5ccedf10e57951c728203ded48ecd31c941c2368 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.