commit | 4f3b8f280995b117a70b6178c407377502fe53c9 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Wed Jul 24 17:53:26 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Wed Jul 24 17:53:26 2024 +0000 |
tree | 9845ff21508e3ae246ab57025eab8e8503b8960f | |
parent | 4114d3b0dbb25b4b5fcc83d986537311e9105394 [diff] | |
parent | 344c90c8716da6e5ffcb2a1d711f012de395285e [diff] |
Snap for 12134224 from 344c90c8716da6e5ffcb2a1d711f012de395285e to simpleperf-release Change-Id: I66d46ed36d36c7848bd608c83f61e7c9b56f2346
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.