commit | f6f4fcf3f65ec015bfeff6c8b540c19934d17058 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Wed May 22 23:28:41 2024 +0000 |
committer | Automerger Merge Worker <[email protected]> | Wed May 22 23:28:41 2024 +0000 |
tree | 9845ff21508e3ae246ab57025eab8e8503b8960f | |
parent | 077f22cc5d50f6f788f13e39491f2aaa67ac9075 [diff] | |
parent | 344c90c8716da6e5ffcb2a1d711f012de395285e [diff] |
Update Android.bp by running cargo_embargo am: 230522dee7 am: 344c90c871 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/protobuf/+/3095902 Change-Id: Id0684af80f30e4e89bb1047ebf5b870c466c95d7 Signed-off-by: Automerger Merge Worker <[email protected]>
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.