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!: Remote type implements all relevant traits so it can be stored in #[cw_serde] types #194

Merged
merged 1 commit into from
Jul 14, 2023

Conversation

hashedone
Copy link
Collaborator

@hashedone hashedone commented Jul 14, 2023

Closes #181

BREAKING CHANGE: new traits are generated on the Remote type: Clone, Debug, PartialEq, schemars::JsonSchema. If any traits with functions of the same signature as one of added traits are implemented manually on the Remote type (eg.: fn clone()), it might break compilation. It is very unlikely case, but technically possible.

@hashedone hashedone requested a review from jawoznia July 14, 2023 10:59
@codecov
Copy link

codecov bot commented Jul 14, 2023

Codecov Report

Merging #194 (4b4b47b) into main (95024bc) will increase coverage by 0.74%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #194      +/-   ##
==========================================
+ Coverage   82.95%   83.70%   +0.74%     
==========================================
  Files          23       23              
  Lines        1185     1172      -13     
==========================================
- Hits          983      981       -2     
+ Misses        202      191      -11     
Impacted Files Coverage Δ
sylvia/tests/remote.rs 0.00% <ø> (ø)
sylvia-derive/src/remote.rs 91.66% <100.00%> (ø)

... and 3 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@hashedone hashedone changed the title fix: Remote type implements all relevant traits so it can be stored in #[cw_serde] types fix!: Remote type implements all relevant traits so it can be stored in #[cw_serde] types Jul 14, 2023
Copy link
Collaborator

@jawoznia jawoznia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jawoznia jawoznia merged commit ec0b41a into main Jul 14, 2023
7 checks passed
@jawoznia jawoznia deleted the remote-fix branch July 14, 2023 12:28
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.

Cannot store / serialize auto-generated Remote type
2 participants