commit | 8f7ce35eb91916195b26673601688a28fb81348c | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Thu Oct 24 15:18:47 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Thu Oct 24 15:18:47 2024 +0000 |
tree | 322b5a81b5ef504654c1c3fcb86617d39f54f762 | |
parent | 8862c011a1a95f13712470dc387288a120fdf476 [diff] |
Migrate v2.27 of protobuf and protobuf-codegen to monorepo. These go in the "extra versions" managed repo. Bug: http://b/339424309 Test: treehugger Change-Id: I664819b645f35dbac58965f13eb1c7440a851b62
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.