prost icon indicating copy to clipboard operation
prost copied to clipboard

Stripped underscore character from message and enum names

Open ancwrd1 opened this issue 3 years ago • 1 comments

We have proto files with all top-level definitions look like this:

message R_SomeRequest {
   ...
}

enum R_SomeEnum {
}

Which is translated by prost into RSomeRequest and RSomeEnum Rust names. Is it possible to retain the underscores, perhaps with configuration option?

ancwrd1 avatar Jan 08 '22 09:01 ancwrd1

prost uses heck's case conversion implementation, which does not support this.

olix0r avatar Jan 12 '22 23:01 olix0r