Lower Rustc version requirement to 1.9 for rand_core#413
Lower Rustc version requirement to 1.9 for rand_core#413pitdicker wants to merge 2 commits intorust-random:masterfrom
Conversation
dhardy
left a comment
There was a problem hiding this comment.
Wow, I was hoping we'd seen the last of try!
Are there users who actually want this? If so I'm quite happy to support an older version of Rust, but as it stands most (if not all) binaries using rand_core will somewhere be using rand too.
Really? I was pretty happy when it got introduced, and don't mind it much. But of course
Don't know, what I had it in mind for was #399 (comment). Basically if a library wants to support older rust versions, and its requirements are really minimal, using only |
|
I also wonder what the use case of |
FWIW, we bumped that slightly to 1.13 when we switched to crossbeam-deque. I'm debating whether |
|
Well, this PR is about reducing the Rust version of just |
|
Would this PR be acceptable if the minimum rust version was lowered to only 1.13, with the try operator? |
|
I'd say supporting older compilers is acceptable if and only if there is a use case we care about supporting. If Rayon wants to support 1.13 and use only If anyone disagrees, by all means speak up — but I don't think we should support older compilers "just because we can". |
|
I think we can close this then. I'm happy to revisit the issue should something come up but I'd be a little surprised if |
After seeing how much contortions some crates go through to keep building on older rust versions, I changed my mind and want to document the oldest version supported by rand_core.
Rayon depends on rust 1.12, which we can support to with just a few cosmetic changes. With those changes
rand_corealso builds on rust 1.9.0.