commit | 21c9ca4772715d59688f94e388f5210fc6feda71 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri May 26 10:19:02 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri May 26 10:19:02 2023 +0000 |
tree | 971c49e3e23c1508cd5d3449db1162011f57ccc6 | |
parent | 4d239398748445d971f3b3f4cdac6984541e91ab [diff] | |
parent | 45f0bf3bf0b816709a0685db2ee6b6381a2683e5 [diff] |
Snap for 10209341 from 45f0bf3bf0b816709a0685db2ee6b6381a2683e5 to mainline-healthfitness-release Change-Id: I478d11896ecc1458025eec04f2c0c9657e75e435
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.