| commit | 8e626652cac98c790ce61a9f42ef49a5bf221f04 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 13 01:23:20 2023 +0000 |
| committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Apr 13 01:23:20 2023 +0000 |
| tree | 971c49e3e23c1508cd5d3449db1162011f57ccc6 | |
| parent | f25d5b7f747ac3c5f992f12666d2e644af03da54 [diff] | |
| parent | f8e1c54d82af6f88ae66ed720aed81eec9c36a53 [diff] |
Snap for 9931682 from f8e1c54d82af6f88ae66ed720aed81eec9c36a53 to udc-d1-release Change-Id: I9f742c13f10a49fca1033a33a15f4a8e721f18d7
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.