| commit | 5e7827f330d33d22b828c4e7b293a9bc24ac7aa8 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 05:08:21 2023 +0000 |
| committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Jul 07 05:08:21 2023 +0000 |
| tree | 971c49e3e23c1508cd5d3449db1162011f57ccc6 | |
| parent | 208c5ce14c6a03aaa85ab66dabc46624f24f1692 [diff] | |
| parent | 2eb9e3967a2aca32e176fddb9e387e1a20a31cf9 [diff] |
Snap for 10453563 from 2eb9e3967a2aca32e176fddb9e387e1a20a31cf9 to mainline-permission-release Change-Id: I48a52e1f1650d1495937616ba45770f41ff46c43
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.