commit | 6759232908f0ddf22bdc56d3279e6ba3b6d5d807 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu May 23 23:15:21 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu May 23 23:15:21 2024 +0000 |
tree | 9845ff21508e3ae246ab57025eab8e8503b8960f | |
parent | da59a6748d27ffc0824d0f4cf68d2a89ad2b55a3 [diff] | |
parent | f6f4fcf3f65ec015bfeff6c8b540c19934d17058 [diff] |
Snap for 11881322 from f6f4fcf3f65ec015bfeff6c8b540c19934d17058 to 25D4-release Change-Id: I4785bffd3d6c025e38f1aef7953eaecdfb5c5852
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.