commit | 3a9232a13b8d97c2b819e2c9a320806d22441175 | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Tue Dec 05 17:21:45 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Dec 05 17:21:45 2023 +0000 |
tree | 5b8f6d934520f205ebf8aa8afe699e30fa8b4b1c | |
parent | 448ecb7a6d44abdcbba889bdb1f5614e9d1bf50c [diff] | |
parent | 4af4d955be78e2c9e973daf8d4e7f2131a237b33 [diff] |
Migrate to cargo_embargo. am: 7994f86262 am: 4af4d955be Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/protobuf/+/2856056 Change-Id: Id12bb3f18aa736579b9b5d22b179cab93030b4b3 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.