| commit | 9c1f69d7342a1c25f84a329cd8fdfc0db65c8109 | [log] [tgz] |
|---|---|---|
| author | James Farrell <jamesfarrell@google.com> | Tue May 21 18:55:30 2024 +0000 |
| committer | James Farrell <jamesfarrell@google.com> | Tue May 21 18:55:30 2024 +0000 |
| tree | 500cf6124cf8226acc1632a294efe1f22fd69e85 | |
| parent | da59a6748d27ffc0824d0f4cf68d2a89ad2b55a3 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I192ef4f05c061d3d5dc6e2359af85b5511e22b68
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.