commit | 1d1895d52df4d271c543248c7949835ba9832855 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Thu Nov 16 18:11:13 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Nov 16 18:11:13 2023 +0000 |
tree | e53480b90569cebf978467178f3251ccef6a8549 | |
parent | 847fa8e7b887e8071dd528b6e5a4088a8feff29a [diff] | |
parent | 41728e2a7b9361219a8ad00d8c6ba6726c54f31e [diff] |
Migrate to cargo_embargo. am: 41728e2a7b Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/protobuf/+/2834511 Change-Id: I6d8a2a020527e5c7a5446a992b1f07acf49576df 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.