dropbox / pb-jelly

A protobuf code generation framework for the Rust language developed at Dropbox.
Apache License 2.0
611 stars 25 forks source link

Document grpc_slices/zero_copy/blob #42

Open nipunn1313 opened 4 years ago

nipunn1313 commented 4 years ago

Currently, codegen supports three different forms of ZC codegen

rust.grpc_slices=true rust.zero_copy=true rust.blob=true

Analyze/understand why these are here and what they are, and potentially simplify.

nipunn1313 commented 4 years ago

At a glance, rust.zero_copy and ctype.CORD actually work similarly (where ctype.CORD generates references to a not-yet-OSS library blob_pb which includes WrappedBlob and VecSlice). Understand what's going on here - and potentially clean up and open source blob_pb.