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

[NTRN-192] feat: add proto build #125

Merged
merged 11 commits into from
Apr 17, 2024
Merged

[NTRN-192] feat: add proto build #125

merged 11 commits into from
Apr 17, 2024

Conversation

sotnikov-s
Copy link
Contributor

@sotnikov-s sotnikov-s commented Dec 20, 2023

task: https://hadronlabs.atlassian.net/browse/NTRN-192

This PR:

  • completes the proto-build script's mod.rs population part
  • adds make build-proto command
  • replaces neutron submodule usage with clone + usage + removal
  • updates the generated Rust proto files (located inproto-types) version to the current Neutron v3.0.3

@sotnikov-s sotnikov-s changed the base branch from main to sdk/47 December 20, 2023 15:05
@pr0n00gler pr0n00gler changed the base branch from sdk/47 to main February 5, 2024 14:13
@sotnikov-s sotnikov-s force-pushed the feat/add-proto-build branch from 150a9b1 to 6ff4684 Compare March 6, 2024 09:03
@sotnikov-s sotnikov-s force-pushed the feat/add-proto-build branch from 75452f9 to ed3547b Compare March 6, 2024 09:21
@sotnikov-s sotnikov-s force-pushed the feat/add-proto-build branch from 12f4d87 to 19efb7a Compare March 6, 2024 09:27
@sotnikov-s sotnikov-s marked this pull request as ready for review March 6, 2024 09:34
neutron Outdated
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, is it required to be here?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can avoid using submodules and just clone the repo and then remove it after all proto generations?

README.md Outdated
proto files have changed there's a command for Rust generated code rebuild. To rebuild the files,
run the following command using the respective Neutron revision (commit hash) as an argument, e.g.:
```sh
make build-proto revision=60b7d38358efb2f8e45e25ee4db8e19a6462dd9e
Copy link
Collaborator

@pr0n00gler pr0n00gler Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw make build-proto revision=v2.0.3 (tags) also works, so maybe it's worth to simplify readme example with a tag, not a commit

Copy link
Collaborator

@pr0n00gler pr0n00gler Mar 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cause in normal circumstances we should use tags anyway, not just a random commit

@pr0n00gler pr0n00gler merged commit 4fc7cfd into main Apr 17, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants