Skip to content

Drop serde dependency from lightning-block-sync #2116

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

Merged
merged 1 commit into from
Mar 20, 2023

Conversation

TheBlueMatt
Copy link
Collaborator

serde doesn't bother with MSRVs, so its expected to break frequently. Yesterday, the derive feature had its MSRV broken in a patch version without care.

Luckily its trivial for us to remove the serde dependency in lightning-block-sync, using only serde_json for the JSON deserialization part. It even ends up net-negative on LoC.

@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.14 🎉

Comparison is base (217c3e0) 91.32% compared to head (243b9fd) 91.47%.

❗ Current head 243b9fd differs from pull request most recent head b701a6c. Consider uploading reports for the commit b701a6c to get more accurate results

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2116      +/-   ##
==========================================
+ Coverage   91.32%   91.47%   +0.14%     
==========================================
  Files         101      101              
  Lines       48791    49513     +722     
  Branches    48791    49513     +722     
==========================================
+ Hits        44558    45290     +732     
+ Misses       4233     4223      -10     
Impacted Files Coverage Δ
lightning-block-sync/src/convert.rs 90.60% <100.00%> (-0.10%) ⬇️

... and 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

tnull
tnull previously approved these changes Mar 20, 2023
dunxen
dunxen previously approved these changes Mar 20, 2023
`serde` doesn't bother with MSRVs, so its expected to break
frequently. Yesterday, the `derive` feature had its MSRV broken in
a patch version without care.

Luckily its trivial for us to remove the `serde` dependency in
`lightning-block-sync`, using only `serde_json` for the JSON
deserialization part. It even ends up net-negative on LoC.
@TheBlueMatt TheBlueMatt merged commit 86e94c4 into lightningdevkit:main Mar 20, 2023
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.

5 participants