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

Osmosis-Proto #288

Closed
wants to merge 44 commits into from
Closed

Osmosis-Proto #288

wants to merge 44 commits into from

Conversation

Philipp-Sc
Copy link
Contributor

Hi,

I just took the time to update the osmosis-proto crate.

Note:

the folder proto-build now contains:

  • cosmos (from cosmos-rust/proto-build)
  • osmosis (from cosmos-rust-development/proto-build-osmosis)

Best regards,
Philipp

@Philipp-Sc
Copy link
Contributor Author

@tony-iqlusion can you point me in the right direction, what is missing / what are the requirements for osmosis-proto to be merged?

@tony-iqlusion
Copy link
Member

@Philipp-Sc looks close! Needs rustfmt.

The build on WASM is also failing. I don't think you need to build on WASM for an MVP. But if you don't plan on supporting it out-of-the-gate, you need to remove the CI jobs to test the WASM build.

@Philipp-Sc
Copy link
Contributor Author

@tony-iqlusion thank you, I removed the WASM build target for now. I do not need it, but I am happy to help add it later if needed. I also fixed the formatting. I hope the workflows go through now.

@tony-iqlusion
Copy link
Member

@Philipp-Sc it looks like the crate is failing to build without default features

removed --no-default-features
@Philipp-Sc
Copy link
Contributor Author

@tony-iqlusion thank you, I removed --no-default-features from the workflow, since the default feature is required.

Anyway you might not need to merge this PR after all.

I found there is osmosis-rust, their README.md does not mention anything about proto definitions. That's why I didn't find it before. They have a proto-build package.

@tony-iqlusion
Copy link
Member

tony-iqlusion commented Sep 10, 2022

@Philipp-Sc interesting re osmosis-rust, let me open an issue to ask.

Edit: opened osmosis-labs/osmosis-rust#41

@tony-iqlusion
Copy link
Member

Well, not sure how to move forward here until we hear back from the osmosis-rust people.

I think that's likely to be a better home for this work than here.

@Philipp-Sc
Copy link
Contributor Author

@tony-iqlusion feel free to close the PR. As long as the osmosis team maintains their proto-build package, I am happy with it. I will keep the fork for a while and later switch my project to the official package.

Anyway thank you for the time you took to go through this PR. It was a good exercise in improving my rust skills.

@Philipp-Sc
Copy link
Contributor Author

@tony-iqlusion fyi I think will continue maintaining osmosis-proto, for my use I prefer to have the same types generated for cosmos-sdk-proto and osmosis-proto.

The official osmosis-std has quite a few customizations and a somewhat different structure.

As long as I don't run into issues I will not migrate (my project cosmos-rust-bot) to osmosis-std, with the goal to maintain and keep osmosis-proto as vanilla and close to cosmos-sdk-proto as possible.

cosmrs: `Coin` constructor (cosmos#291)
@tony-iqlusion
Copy link
Member

@Philipp-Sc ok, perhaps you can make a separate repo for it somewhere then?

I thought this was an interesting PR when I wasn't aware of a separate official Osmosis Rust project, but since there is I'd prefer not to have a "competing" implementation here, even if it better interops with the crates in this repo.

@Philipp-Sc
Copy link
Contributor Author

I agree, just wanted to give an update on this. Closing this PR now. Thanks for all your help.

Best regards,
Philipp

@Philipp-Sc Philipp-Sc closed this Oct 25, 2022
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