|
Ran
|
Jobs
1
|
Files
417
|
Run time
40s
|
Badge
README BADGES
|
push
travis-ci-com
use Bytes instead of Vec<u8> for protobuf binary fields (#11342) ### Problem https://github.com/pantsbuild/pants/pull/11307 upgraded the gRPC code to [Tonic](https://github.com/hyperium/tonic) from grpcio. As part of that upgrade, Pants now uses [Prost](https://github.com/danburkert/prost) to generate Rust structs for protobuf types. By default, Prost encodes binary fields as `Vec<u8>`. Given the attendant problems of `Vec<u8>` of needing to copy around bytes when structs are cloned, the more efficient method is to use `Bytes` for the representation to avoid unnecessary copies. ### Solution Upgrade Prost to https://github.com/danburkert/prost/commit/a1cccbcee and enable using `Bytes` for all binary fields. ### Result Existing tests pass.
0 of 28892 relevant lines covered (0.0%)
0.0 hits per line