-
Notifications
You must be signed in to change notification settings - Fork 191
Update rand
crate to 0.9 and bump related dependencies
#1445
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
Just confirming that this update does, in fact, unblock
For |
Pull Request Test Coverage Report for Build 14929102910Details
💛 - Coveralls |
Just confirming that
At least passes now. Of course there will be other quirks of Pyodide and emscripten to figure out, but at least we can compile and test something |
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.
Overall this LGTM. I just have some minor issue with the error handling around the random distribution creation from fixed values. It shouldn't ever come up in practice, but I think the potential errors being returned are misleading in the unlikely chance there was a bug in rand_distr
that caused Uniform(0., 1.)
to return an Err
.
Ok, I changed |
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.
LGTM, thanks for updating the errors
* Update rand crates in rustworkx-core * Update rand crates in rustworkx for Python * Incorporate PR feedback
This is an unusual update, after many years
rand
got a major update. In the past, mostlyrand_pcg
got minor updates and to be honest we never really bumped it.One of the main changes is moving
rand::distributions
torand_distr
and making some distributions returnResult<Dist, E>
for invalid arguments. So we need to catch some errors, despite the fact that with our current code they never happen.Also, maybe this PR makes
rand
easier to work with WASM/Emscripten for #703.rand
not compiling in WASM is what prompted me to check there was arand
update in the first place.