| commit | a270ca76776e7054a69affa36b2e371aea804ed1 | [log] [tgz] | 
|---|---|---|
| author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Dec 06 00:14:27 2023 +0000 | 
| committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Dec 06 00:14:27 2023 +0000 | 
| tree | 5b8f6d934520f205ebf8aa8afe699e30fa8b4b1c | |
| parent | ef03053977a7c094129726dc553ae43ba376f2ce [diff] | |
| parent | da59a6748d27ffc0824d0f4cf68d2a89ad2b55a3 [diff] | 
Snap for 11180250 from da59a6748d27ffc0824d0f4cf68d2a89ad2b55a3 to 24D1-release Change-Id: I7ffe6edaa4f080bc1e4dc06b7ae553226b16e940
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.