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

feat: enable no_std support for pbjson #158

Merged
merged 4 commits into from
Aug 16, 2023
Merged

feat: enable no_std support for pbjson #158

merged 4 commits into from
Aug 16, 2023

Conversation

Farhad-Shabani
Copy link
Member

@Farhad-Shabani Farhad-Shabani commented Jul 27, 2023

Closes: #156

Background

This PR addresses the no_std compatibility issue with serde feature in ibc-rs. This is caused by the recent implementation of ProtoJSON serialization and deserialization for the ics23 Protobuf definitions using pbjson, and then re-exporting the ics23 type in ibc-proto-rs. Some of our users by then (starting from IBC-rs v0.41.0) are experiencing compilation errors.

To meet this immediate need and the lack of activity in the pbjson crate for months, we have taken the initiative to feature no_std support in the informalsystems-pbjson crate and have it published.

Before finalizing this change, I’d like to cross-check with @hdevalence to ensure this addition is in line with their systems too and maintain the expected behavior.

Subsequent PR in ibc-proto-rs: cosmos/ibc-proto-rs#118
Subsequent PR in ibc-rs: cosmos/ibc-rs#790

@codecov
Copy link

codecov bot commented Jul 27, 2023

Codecov Report

Patch coverage: 45.52% and project coverage change: +16.55% 🎉

Comparison is base (daa1760) 48.76% compared to head (93fd9cf) 65.32%.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #158       +/-   ##
===========================================
+ Coverage   48.76%   65.32%   +16.55%     
===========================================
  Files          24        7       -17     
  Lines        9900     3550     -6350     
  Branches       86        0       -86     
===========================================
- Hits         4828     2319     -2509     
+ Misses       4715     1231     -3484     
+ Partials      357        0      -357     
Flag Coverage Δ
go ?
rust 65.32% <45.52%> (-0.01%) ⬇️
typescript ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
rust/src/cosmos.ics23.v1.serde.rs 40.43% <45.52%> (ø)

... and 17 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Farhad-Shabani Farhad-Shabani marked this pull request as ready for review July 28, 2023 12:12
@romac
Copy link
Member

romac commented Aug 10, 2023

If nobody objects, let's merge this on Tuesday next week (August 15th).

@romac romac merged commit 864b821 into master Aug 16, 2023
@romac romac deleted the farhad/no-std-support branch August 16, 2023 07:45
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.

enable pbjson support no-std
2 participants