Skip to content

[Abstract protocol] Centralize protobuf code-generation scripts #578

Description

@gabotechs

Today, we have two places where we have a .proto file and we generate protos out of it:

Each one with their own generator scripts.

After #577, we might have one more, so in order to avoid another copy-paste of the code generator logic, it'd be nice to have a single central place that we use for code generation.

My intuition tells me that having a single workspace decoupled folder called codegen/ in the root of the project with a structure similar to the other gen/ folders can work well. This codegen/ folder will be like it's own isolated Rust project detached from the main workspace (like the other gen/ folders) in charge of generating proto stubs for the whole project at once.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions