-
Notifications
You must be signed in to change notification settings - Fork 431
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
Lower Rustc version requirement to 1.9 for rand_core #413
Conversation
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.
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_core
also builds on rust 1.9.0.