-
Notifications
You must be signed in to change notification settings - Fork 305
Clean up the hashes dependency/feature #628
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
8f94237 to
446e045
Compare
| alloc = ["secp256k1-sys/alloc"] | ||
| bitcoin-hashes = ["bitcoin_hashes"] # Feature alias because of the underscore. | ||
| bitcoin-hashes-std = ["std", "bitcoin_hashes", "bitcoin_hashes/std"] | ||
| hashes-std = ["std", "hashes/std"] |
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.
Whenever we hit MSRV 1.60 we can replace all the -std ones with:
std = ["hashes?/std"]
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.
Already tracked here: rust-bitcoin/rust-bitcoin#1722 but thanks for mentioning, I didn't actually know what "weak dependencies" meant - TIL.
elichai
left a comment
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, only went over the diff 446e045
sanket1729
left a comment
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.
utACK 446e045.
299952b to
c5279be
Compare
c5279be to
fca3cd3
Compare
dd78b87 to
a522bf2
Compare
a522bf2 to
834d9ea
Compare
|
I botched the rebase, will fix tomorrow. |
6cec5e7 to
c965c94
Compare
Use the more terse `hashes` by way of the `package` field in the manifest. Allows us to remove the ugly feature alias "bitcoin-hashes" -> "bitcoin_hashes" and removes all the bother with the underscore. Why did we not think of this 2 years ago?
Now that we have `hashes` as the crate name of `bitcoin_hashes` we can slightly clean up the import statements. This is based on the convention we have to import things directly from the crate if we depend on it and not from the crate level re-export.
c965c94 to
6fdd3b1
Compare
apoelstra
left a comment
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 6fdd3b1
…/feature
6fdd3b1da518e828545dcec54340f9ea6f81c741 Clean up hashes import statements (Tobin C. Harding)
6d7c653b64a48aa80486f87907418992dd63d49b Use hashes instead of bitcoin_hashes (Tobin C. Harding)
Pull request description:
Use the more terse `hashes` by way of the `package` field in the manifest.
Allows us to remove the ugly feature alias "bitcoin-hashes" -> "bitcoin_hashes" and removes all the bother with the underscore.
ACKs for top commit:
apoelstra:
ACK 6fdd3b1da518e828545dcec54340f9ea6f81c741
Tree-SHA512: 2c6c81b6ef900bfe930df48ddd32e795997c107a2a94b9e2ea014da0be7aefaa952e1259ddb570b30f5ad7e94c0a9443b691645cb386a8d0349dc7a81f659ed6
…/feature
6fdd3b1da518e828545dcec54340f9ea6f81c741 Clean up hashes import statements (Tobin C. Harding)
6d7c653b64a48aa80486f87907418992dd63d49b Use hashes instead of bitcoin_hashes (Tobin C. Harding)
Pull request description:
Use the more terse `hashes` by way of the `package` field in the manifest.
Allows us to remove the ugly feature alias "bitcoin-hashes" -> "bitcoin_hashes" and removes all the bother with the underscore.
ACKs for top commit:
apoelstra:
ACK 6fdd3b1da518e828545dcec54340f9ea6f81c741
Tree-SHA512: 2c6c81b6ef900bfe930df48ddd32e795997c107a2a94b9e2ea014da0be7aefaa952e1259ddb570b30f5ad7e94c0a9443b691645cb386a8d0349dc7a81f659ed6
Use the more terse
hashesby way of thepackagefield in the manifest.Allows us to remove the ugly feature alias "bitcoin-hashes" -> "bitcoin_hashes" and removes all the bother with the underscore.