-
Notifications
You must be signed in to change notification settings - Fork 29
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
Rectify documentation, fix clippy warnings and update dependencies #18
Conversation
This commit fixes bitcoindevkit#17
It appears there is some problem running clippy tests for PRs. Trust me, all clippy warnings are fixed :) |
And, about the dependencies, I don't think we even need requirements.txt. The |
Then we should update the CI so that it fails if there are annotations, as BDK does
Right, can you please remove everything from it but hwi (also, specify the hwi version) and test that it works? |
Can confirm. This works. |
I am sorry, I couldn't understand this. Could you explain it again, please. Regarding the problem with clippy, I was using a predefined Github action clippy-check. I didn't see it before, but it's kind of mentioned on the front page about the problem. |
Cargo.toml
Outdated
serde = { version = "1.0.137", features = ["derive"] } | ||
serde_json = { version = "1.0.81" } |
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.
It's better to leave ^1.0
here (for both serde
and serde_json
), it basically means "whatever version >= 1.0 but < 2.0". This way we still have all the fixes they might push after 1.0.137. BDK uses the same :)
Cargo.toml
Outdated
serde = { version = "1.0", features = ["derive"] } | ||
serde_json = { version = "1.0" } |
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.
You removed the ^
, it should still be there
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.
https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#caret-requirements.
I did notice that, but was being lazy so I left it like that xD. Fixed now.
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.
ACK 76bd787
Documentation for some functions still contained the
testnet
argument. I changed them to thechain
argument.Clippy warnings were corrected, where possible. Otherwise, I suppressed them (at 1 place in total).
Dependencies were updated to the latest versions compatible with each other.