commit | 339af928cdadc9051185bf7683d5a5dd8d0f7a69 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Thu May 23 23:14:42 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Thu May 23 23:14:42 2024 +0000 |
tree | 9845ff21508e3ae246ab57025eab8e8503b8960f | |
parent | da59a6748d27ffc0824d0f4cf68d2a89ad2b55a3 [diff] | |
parent | f6f4fcf3f65ec015bfeff6c8b540c19934d17058 [diff] |
Snap for 11881322 from f6f4fcf3f65ec015bfeff6c8b540c19934d17058 to 24Q3-release Change-Id: I4ae0236edd7a852ab7e96878621d847dedf06dab
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.