rust-protobuf
rust-protobuf copied to clipboard
Proto files with the same name but different directory are overwritten
By convention, our gRPC services are structured like this:
├── service 1
│ ├── message.proto
│ └── service.proto
├── service 2
│ ├── message.proto
│ └── service.proto
├── service 3
│ ├── message.proto
│ └── service.proto
├── service 4
│ ├── messages.proto
│ └── tensor.proto
Unfortunately, this library generates Rust files in a single directory and use the same name as the proto file. This ultimately means the services clobber each other's files.
I can see there's an old issue regarding adding hierarchal support to the code generation. This would solve our problem. Though based on its age I don't expect it to be added any time soon. Are there other solutions or work arounds to this?
No there's no workaround. Sorry.
If someone wants to help, please do.