feat: enable no_std support for pbjson
#158
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #156
Background
This PR addresses the
no_std
compatibility issue withserde
feature inibc-rs
. This is caused by the recent implementation of ProtoJSON serialization and deserialization for theics23
Protobuf definitions usingpbjson
, and then re-exporting the ics23 type inibc-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 featureno_std
support in theinformalsystems-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#118Subsequent PR in
ibc-rs
: cosmos/ibc-rs#790