dcarp / protobuf-d

Protocol Buffers Compiler Plugin and Support Library for D
Boost Software License 1.0
38 stars 9 forks source link

Replace dash with underscore for generated D files? #39

Open AndrejMitrovic opened 1 year ago

AndrejMitrovic commented 1 year ago

One of the upstream dependencies I'm targeting uses a file named kafka-egress.proto, this generates a D file named kafka-egress.d with a module declaration module kafka-egress.d.

This won't compile in D as - is not valid in a module declaration.

I could rename the upstream file, but I'd rather not taint the sources.

Could protobuf-d be fixed to replace - with an underscore _ in both the generated filename and the module declaration?