grpc-rs icon indicating copy to clipboard operation
grpc-rs copied to clipboard

Enum generation does not repect standard naming

Open vimpunk opened this issue 5 years ago • 2 comments

Describe the bug When I define an enum in protobuf with the variants in the correct style (ALL_CAPS_UNDERSCORES), the generated rust enum's variants are also in the same style.

Expected behavior The generated enum variants in the rust code to use PascalCase.

vimpunk avatar Apr 23 '19 16:04 vimpunk

What branch of grpc-rs are you using?

ice1000 avatar Apr 23 '19 16:04 ice1000

@ice1000 Thanks for the quick reply. This is what's in the Cargo.toml of our grpc crate:

[dependencies]
futures = "0.1.16"
grpcio = "0.4.4"
protobuf = "~2"

[build-dependencies]
protoc-grpcio = "0.3.1"

vimpunk avatar Apr 24 '19 12:04 vimpunk