-
Notifications
You must be signed in to change notification settings - Fork 412
Remove explicit dependency on hex-conservative #3210
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
Conversation
Ugh, this makes the code non-uniform because it grabs
(If we do (2) I can revive #3146.) |
Yea, sorry, we weren't really good about that. Fixing in #3226 |
3161563
to
4bf5489
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3210 +/- ##
==========================================
+ Coverage 89.74% 89.84% +0.10%
==========================================
Files 122 122
Lines 101875 102846 +971
Branches 101875 102846 +971
==========================================
+ Hits 91423 92407 +984
- Misses 7767 7776 +9
+ Partials 2685 2663 -22 ☔ View full report in Codecov by Sentry. |
4bf5489
to
ab335ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Oops, this doesn't build because of the diff --git a/lightning-invoice/Cargo.toml b/lightning-invoice/Cargo.toml
index d89f8d08e..94b307167 100644
--- a/lightning-invoice/Cargo.toml
+++ b/lightning-invoice/Cargo.toml
@@ -28,7 +28,6 @@ bitcoin = { version = "0.31.2", default-features = false }
[dev-dependencies]
lightning = { version = "0.0.123-beta", path = "../lightning", default-features = false, features = ["_test_utils"] }
-hex = { package = "hex-conservative", version = "0.1.1", default-features = false }
serde_json = { version = "1"}
hashbrown = { version = "0.13", default-features = false } |
ab335ed
to
64af3fc
Compare
The `hex` crate is re-exported by `rust-bitcoin` so we can get it from there instead of explicitly depending on it. Doing so reduces the maintenance burden and helps reduce the likelyhood of getting two versions in the dependency graph.
Use the `hex-conservative` crate directly from `bitcoin` instead of from `hashes`. Although it makes no real difference it is slightly more clear and more terse.
64af3fc
to
eac1b87
Compare
I don't know what to make of the failing CI jobs, there is a |
Yeah, unfortunately they started failing a few days ago without yielding any error output, and so far nobody has found the time to dig in what makes github fail them.. |
Bizzarre, can you tag me please if it turns out to be something github related that we might run into in |
The
hex
crate is re-exported byrust-bitcoin
so we can get it from there instead of explicitly depending on it. Doing so reduces the maintenance burden and helps reduce the likelyhood of getting two versions in the dependency graph.Note however that there is still a single explicit dev dependency that may want to be kept in sync.