| commit | da59a6748d27ffc0824d0f4cf68d2a89ad2b55a3 | [log] [tgz] |
|---|---|---|
| author | Andrew Walbran <qwandor@google.com> | Tue Dec 05 17:22:04 2023 +0000 |
| committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Dec 05 17:22:04 2023 +0000 |
| tree | 5b8f6d934520f205ebf8aa8afe699e30fa8b4b1c | |
| parent | 827b9a76efbae66a0dd2aa85d6740149a37c9ef2 [diff] | |
| parent | 3a9232a13b8d97c2b819e2c9a320806d22441175 [diff] |
Migrate to cargo_embargo. am: 7994f86262 am: 4af4d955be am: 3a9232a13b Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/protobuf/+/2856056 Change-Id: I8a5a9ca73c4f3ed5c209f15f4b4a43f202169b59 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.