commit | 30ecac0c64034d24ecd26aafc1ace02c874847b4 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 11 18:16:55 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 11 18:16:55 2024 +0000 |
tree | 5b8f6d934520f205ebf8aa8afe699e30fa8b4b1c | |
parent | 6f102d68a94700e5100cf70f7e58c046fd26ae56 [diff] | |
parent | da59a6748d27ffc0824d0f4cf68d2a89ad2b55a3 [diff] |
Snap for 11702928 from da59a6748d27ffc0824d0f4cf68d2a89ad2b55a3 to emu-34-2-release Change-Id: Id82a6b97249e6ec7ca631de47819f0c0ea6c75ef
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.