commit | 17342c31c8555a3b42d23487e12ac103e21b334f | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Wed Sep 13 18:54:25 2023 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Wed Sep 13 18:54:25 2023 +0000 |
tree | 3acbd23b39d115c06ce860bb0caa19b801291245 | |
parent | 7341fcb74547dbbda375b990fc31e87eb4067e87 [diff] |
Cleanup cargo2android configs and patches Use name-suffix and dep-suffixes (aosp/2751102) and remove patches no longer needed as a result. Other minor cleanups to eliminate diffs in Android.bp files Test: Ran cargo2android Change-Id: Ic192434a116c8af23adffed4f0f3e4c9e25fbc22
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.