Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protobuf Rust codegen for akash-api #176

Open
2 tasks done
ilbertt opened this issue Jan 18, 2024 · 0 comments
Open
2 tasks done

Protobuf Rust codegen for akash-api #176

ilbertt opened this issue Jan 18, 2024 · 0 comments
Assignees

Comments

@ilbertt
Copy link

ilbertt commented Jan 18, 2024

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

  • I did search for other open and closed issues before opening this

Code of Conduct

  • I agree to follow this project's 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.

@ilbertt ilbertt changed the title Rust codegen for akash-api Protobuf Rust codegen for akash-api Jan 18, 2024
@chainzero chainzero self-assigned this Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants