dropbox / pb-jelly

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

Too lenghty naming #124

Closed kootenpv closed 9 months ago

kootenpv commented 2 years ago

I have a proto file called enums.proto

Is there a way not to use it like:

use proto_enums::proto_enums::Error;

but instead generate it with one of the following (or another suggestion)

use proto::enums::Error;
use proto_enums::enums::Error;
nipunn1313 commented 2 years ago

Can you provide an example? All the examples in https://github.com/dropbox/pb-jelly/tree/main/examples don't seem to have the pattern you're describing.

For example: https://github.com/dropbox/pb-jelly/blob/main/examples/src/basic/main.rs