commit | 4114d3b0dbb25b4b5fcc83d986537311e9105394 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri Feb 02 23:54:48 2024 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri Feb 02 23:54:48 2024 +0000 |
tree | 5b8f6d934520f205ebf8aa8afe699e30fa8b4b1c | |
parent | 75c721fd74ebc5e420d1b827c428058cb0ef6fb1 [diff] | |
parent | 6f102d68a94700e5100cf70f7e58c046fd26ae56 [diff] |
Snap for 11400057 from 6f102d68a94700e5100cf70f7e58c046fd26ae56 to simpleperf-release Change-Id: I9304a0a573cc2109cb079ae94a92a167e8d2b48d
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.