cosmos-rust icon indicating copy to clipboard operation
cosmos-rust copied to clipboard

Osmosis-Proto

Open Philipp-Sc opened this issue 3 years ago • 8 comments

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 avatar Aug 23 '22 12:08 Philipp-Sc

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

Philipp-Sc avatar Sep 05 '22 05:09 Philipp-Sc

@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.

tony-iqlusion avatar Sep 06 '22 18:09 tony-iqlusion

@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.

Philipp-Sc avatar Sep 07 '22 04:09 Philipp-Sc

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

tony-iqlusion avatar Sep 08 '22 20:09 tony-iqlusion

@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.

Philipp-Sc avatar Sep 10 '22 02:09 Philipp-Sc

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

Edit: opened https://github.com/osmosis-labs/osmosis-rust/issues/41

tony-iqlusion avatar Sep 10 '22 16:09 tony-iqlusion

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.

tony-iqlusion avatar Sep 13 '22 13:09 tony-iqlusion

@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 avatar Sep 13 '22 14:09 Philipp-Sc

@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.

Philipp-Sc avatar Oct 23 '22 08:10 Philipp-Sc

@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.

tony-iqlusion avatar Oct 24 '22 15:10 tony-iqlusion

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

Best regards, Philipp

Philipp-Sc avatar Oct 25 '22 05:10 Philipp-Sc