commit | 8862c011a1a95f13712470dc387288a120fdf476 | [log] [tgz] |
---|---|---|
author | Inseob Kim <[email protected]> | Thu Oct 10 17:15:36 2024 +0900 |
committer | Inseob Kim <[email protected]> | Thu Oct 24 14:02:20 2024 +0900 |
tree | e9859952306dc47c73586525ce5ddd040ad83a52 | |
parent | b2be7553f4c86f0b161d6c36fda2298eb3f10711 [diff] |
Use cargo_embargo to update Android.bp and rules.mk Bug: 358302178 Test: ran cargo_embargo Change-Id: I2fdc0016bf542a0a4e63eea9d2fef347c22e9906
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.