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

fix(proto-compiler): std and no-std generated code conflict #61

Merged
merged 7 commits into from
Apr 8, 2024

Conversation

lklimek
Copy link
Collaborator

@lklimek lklimek commented Apr 8, 2024

Issue being fixed or feature implemented

When working with both no_std and std (grpc) features, generated code is not always regenerated.
This can cause issues like including code requiring tonic in no_std mode.

What was done?

Separated generated code into two modules: tenderdash_std and tenderdash_nostd, which are included/exported using conditional compilation.

How Has This Been Tested?

Run cargo build with various combinations of features

Breaking Changes

None

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

proto-compiler/src/functions.rs Fixed Show fixed Hide fixed
proto-compiler/src/functions.rs Fixed Show fixed Hide fixed
@lklimek lklimek marked this pull request as ready for review April 8, 2024 16:28
@lklimek lklimek merged commit 0b6b569 into master Apr 8, 2024
11 checks passed
@lklimek lklimek deleted the fix/std-nostd-conflict branch April 8, 2024 16:53
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