commit | cc124ef7e9b4082988e7a758ccf2eaf6893e8bcd | [log] [tgz] |
---|---|---|
author | Per Larsen <perlarsen@google.com> | Thu Jun 29 00:24:46 2023 +0000 |
committer | Andrei Homescu <ahomescu@google.com> | Tue Oct 31 03:11:00 2023 +0000 |
tree | 1c21bab94220017ec841a951375543ab731a9adc | |
parent | 4a8298bf4aaac5c6a694b595d94bbe694e748558 [diff] |
Adding autogenerated Trusty makefile rules Bug: 281857510 Test: build.py --skip-tests qemu-generic-arm64-test-debug Change-Id: I664fdebf21a811211b6f01cafc65be6c04898757
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.