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

Rectify documentation, fix clippy warnings and update dependencies #18

Merged
merged 4 commits into from
May 23, 2022

Conversation

wszdexdrf
Copy link
Contributor

Documentation for some functions still contained the testnet argument. I changed them to the chain 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.

@wszdexdrf
Copy link
Contributor Author

It appears there is some problem running clippy tests for PRs. Trust me, all clippy warnings are fixed :)

@wszdexdrf
Copy link
Contributor Author

And, about the dependencies, I don't think we even need requirements.txt. The hwi package already specifies dependencies (and their versions) which are installed by pip automatically. So all one needs to install is hwi...

@danielabrozzoni
Copy link
Member

It appears there is some problem running clippy tests for PRs. Trust me, all clippy warnings are fixed :)

Then we should update the CI so that it fails if there are annotations, as BDK does

And, about the dependencies, I don't think we even need requirements.txt.

Right, can you please remove everything from it but hwi (also, specify the hwi version) and test that it works?

@wszdexdrf
Copy link
Contributor Author

Right, can you please remove everything from it but hwi (also, specify the hwi version) and test that it works?

Can confirm. This works.

@wszdexdrf
Copy link
Contributor Author

wszdexdrf commented May 17, 2022

Then we should update the CI so that it fails if there are annotations, as BDK does

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
Comment on lines 14 to 15
serde = { version = "1.0.137", features = ["derive"] }
serde_json = { version = "1.0.81" }
Copy link
Member

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 Show resolved Hide resolved
Cargo.toml Outdated
Comment on lines 14 to 15
serde = { version = "1.0", features = ["derive"] }
serde_json = { version = "1.0" }
Copy link
Member

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

Copy link
Contributor Author

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.

Copy link
Member

@danielabrozzoni danielabrozzoni left a comment

Choose a reason for hiding this comment

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

ACK 76bd787

@danielabrozzoni danielabrozzoni merged commit ba32132 into bitcoindevkit:master May 23, 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.

2 participants