commit | a0938c3ff22a3d7df2478082419787e89f555bf8 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Mon Apr 03 18:16:29 2023 +0200 |
committer | Jeff Vander Stoep <jeffv@google.com> | Mon Apr 03 19:45:23 2023 +0200 |
tree | 609807cba700986c311138f31e5d421f1241deed | |
parent | 158191ed44106548cab90722232f15ef9ee355a4 [diff] |
Upgrade protobuf to 3.2.0 This project was upgraded with external_updater. Usage: tools/external_updater/updater.sh update rust/crates/protobuf For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md Bug: 270895633 Test: TreeHugger Change-Id: I0be90b00e5da83cab2f139b14995231ec7aa81dd
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.