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

Downgrade hashbrown to meet MSRV #1733

Merged

Conversation

TheBlueMatt
Copy link
Collaborator

hashbrown depends on ahash which depends on once_cell. Sadly, in matklad/once_cell#201 the once_cell maintainer decided they didn't want to do the work of having an MSRV policy for once_cell, making ahash, and thus hashbrown require the latest compiler. I've reached out to ahash to suggest they drop the dependency (as they could trivially work around not having it), but until then we simply downgrade hashbrown.

rust-bitcoin also requires an older hashbrown so we're actually reducing our total no-std code here anyway.

@codecov-commenter
Copy link

codecov-commenter commented Sep 22, 2022

Codecov Report

Base: 90.73% // Head: 90.72% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (2e7d924) compared to base (af03788).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1733      +/-   ##
==========================================
- Coverage   90.73%   90.72%   -0.01%     
==========================================
  Files          86       86              
  Lines       46688    46688              
  Branches    46688    46688              
==========================================
- Hits        42361    42358       -3     
- Misses       4327     4330       +3     
Impacted Files Coverage Δ
lightning-invoice/src/payment.rs 89.85% <ø> (ø)
lightning/src/ln/functional_tests.rs 97.00% <0.00%> (-0.08%) ⬇️
lightning/src/util/events.rs 38.40% <0.00%> (+0.26%) ⬆️
lightning-net-tokio/src/lib.rs 77.03% <0.00%> (+0.30%) ⬆️

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 at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

`hashbrown` depends on `ahash` which depends on `once_cell`. Sadly,
in matklad/once_cell#201 the `once_cell`
maintainer decided they didn't want to do the work of having an
MSRV policy for `once_cell`, making `ahash`, and thus `hashbrown`
require the latest compiler. I've reached out to `ahash` to suggest
they drop the dependency (as they could trivially work around not
having it), but until then we simply downgrade `hashbrown`.

`rust-bitcoin` also requires an older `hashbrown` so we're actually
reducing our total `no-std` code here anyway.
Copy link
Contributor

@valentinewallace valentinewallace left a comment

Choose a reason for hiding this comment

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

ACK if CI passes

@valentinewallace valentinewallace merged commit 5211bfd into lightningdevkit:main Sep 22, 2022
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.

None yet

5 participants