-
Notifications
You must be signed in to change notification settings - Fork 280
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
Bumps rand to 0.6.X & associated updates #92
Conversation
8d67d7e
to
207acef
Compare
related: #80 (comment) |
... and depends on the outcome of rust-bitcoin/rust-bitcoin#206 |
What would this increase the minimum rustc version to? |
according to their README, "Since version 0.5, Rand requires Rustc version 1.22 or greater." So we can't do this if we stick to 1.20. rust-bitcoin/rust-bitcoin#210 |
So as rust-bitcoin requires 1.22 now, there is nothing that prevents us from taking this update. Do we want to keep exporting rand? If we don't export, this will break downstream code but we'll break that code probably anyway due to update. It's just possible that we'll need to export it again in a few months when rand upgrades requires a newer Rust again... |
What do you mean "we'll need to export it again"? We should keep exporting rand so that users don't have to manually keep track of what version dependencies we're using and change boilerplate code in response to it. |
Also, importantly, if users want to use their own version of |
Yes, so we should just keep it. @huitseeker Thanks for your PR again! So this requires us to bump to to rust 1.22.0. Can you additionally
(or alternatively, make sure that we can make those changes |
a5a102f
to
b917eda
Compare
I could have sworn @sgeisler had diagnosed the Windows failure and merged this. Anyway, @real-or-random any thoughts on whether we should include the reversal of 9a4961c?) |
I don't think that the changes to BadRng are necessary:
I mean in the end this is just a debugging Rng, so there is nothing wrong with changing it but I feel we should not use For the Windows build: Yes, that's unfortunate, The reason is that the With those two points addresses, this is good to merge for me but I'd like to see an ACK from everybody due to the rust version bump, not only on Linux to 1.22 but in particular on Windows to at least 1.27 (maybe it's in fact even higher, who knows...). @TheBlueMatt? @apoelstra? |
Ok what I'm saying is wrong. We're not bumping on Windows; I guess the build fails already now. But it still will be good to hear your thoughts. |
I'll make a few changes along the lines of your suggestions later today. |
c51eb9e
to
728aaf2
Compare
Thanks for the updates! And sorry that I'm so slow at responding here. Hm, to be honest, now that I see that we need another rand_core then (which is needed by rand anyway though) I'm not convinced anymore that what I suggested is the best approach. But before I ask you to do even more changes and create even more back and forth, I'll suggest waiting for @apoelstra and @TheBlueMatt's opinion on that issue and on the PR in general. |
c6fcb4c
to
87199ca
Compare
I'm happy with a 207acef like style where the relevant |
d2bd5e4
to
c62b7f1
Compare
README.md
Outdated
@@ -20,5 +20,4 @@ Contributions to this library are welcome. A few guidelines: | |||
* Any breaking changes must have an accompanied entry in CHANGELOG.md | |||
* No new dependencies, please. | |||
* No crypto should be implemented in Rust, with the possible exception of hash functions. Cryptographic contributions should be directed upstream to libsecp256k1. | |||
* This library should always compile with any combination of features on **Rust 1.14**, which is the currently shipping compiler on Debian. | |||
|
|||
* This library should always compile with any combination of features on **Rust 1.22**, which is the currently shipping compiler on Debian. |
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.
I think we should drop the reason; Debian actually ships 1.24 or 1.26 or something. Our reasoning for 1.22 is more complicated.
concept ACK. I think we need an analagous PR for rust-bitcoin which is using rand 0.3 (lol!!) to update to 0.6 or maybe just drop it. I'm a bit apprehensive about these new |
|
d493d9b
to
495e0b3
Compare
86d3f16
to
495e0b3
Compare
Changes include cargo-fix generated, Default impls
495e0b3
to
a8a3afe
Compare
/cc @apoelstra