akash-network / support

Akash Support and Issue Tracking
5 stars 3 forks source link

Protobuf Rust codegen for akash-api #176

Open ilbertt opened 5 months ago

ilbertt commented 5 months ago

Is your feature request related to a problem? Please describe.

I can't manage to generate the protobuf Rust structs and types from the akash-api repo.

Describe the solution you'd like

As a fast solution, having a script that generates the Rust code from the *.proto definitions would already be ok.

As a long-term solution, the best would be having the generated Rust code stored in this repo and published as a crate.

Describe alternatives you've considered

I've tried generating the code myself using protoc with the protoc-gen-rust plugin, but I get errors like:

proto/node/akash/audit/v1beta1/audit.proto:4:8:read gogoproto/gogo.proto: file does not exist

To temporarily solve this problem, I'm writing the Rust code manually, translating the types from the *.proto files in the akash-api repo. However, this work is huge and I'd really like to have an automated solution!

Search

Code of Conduct

Additional context

The application I'm working is based on Rust and from this application, I want to interact with Akash. For this reason, I'd like to have the generated protobuf code.