-
Notifications
You must be signed in to change notification settings - Fork 867
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
Update rand requirement from 0.8 to 0.9 #7045
Conversation
Updates the requirements on [rand](https://github.com/rust-random/rand) to permit the latest version. - [Release notes](https://github.com/rust-random/rand/releases) - [Changelog](https://github.com/rust-random/rand/blob/master/CHANGELOG.md) - [Commits](rust-random/rand@0.8.0...0.9.0) --- updated-dependencies: - dependency-name: rand dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
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.
Thanks @mbrobbel -- this looks great
I double checked and given rand is only a dev dependency this change I think can be merged without impacting backwards compatibility
I think we should merge this after making the 42.1 release candidate, which I hope to do in the next few minutes
|
||
let values = ScalarBuffer::from_iter(repeat_with(|| rng.gen()).take(4096)); | ||
let values = ScalarBuffer::from_iter(repeat_with(|| rng.random()).take(4096)); |
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 like this rename from gen
to random
-- I think it is much clearer now
|
||
let usize = UniformUsize::new(usize::MIN, usize::MAX).unwrap(); |
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 found this name confusing -- using usize
as a variable name was unexpected. Can we call it uusize
or something to make it clear it is different than the type usize
?
There are a few other similar refactors below
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.
It's a normal dependency for Line 56 in b1bfa0f
arrow-rs/object_store/Cargo.toml Line 52 in b1bfa0f
|
aac76ad
to
c5e271f
Compare
In order to merge this into main before the next breaking release I think we need to ensure it doesn't appear in any of the public APIs. I can double check in a bit |
I double checked the dependency for arrow is for the test_utils mod which doesn't appear to have rand in any of the public APIs (though I didn't analyze them all to be honest) Since we haven't made a new breaking object store release yet I don't think that is a problem |
Thanks again @mbrobbel ❤️ |
Which issue does this PR close?
Rationale for this change
https://rust-random.github.io/book/update-0.9.html
What changes are included in this PR?
The required changes to migrate from
0.8
to0.9
.Are there any user-facing changes?
rand
dependency bumped to0.9
.