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
Rust: Enable "rand" feature on the "num" crate #102
Comments
Potential workaround would be to generate a series of |
I'll wait until rust-num/num-bigint#185 is released. |
I'll add Rust 1.50 instead of enabling this in 1.49. I'll also change to stop concatenating the preloaded code and use This will break existing solutions for kata using preloaded because the solution must include There are currently 48 Rust kata using preloaded, but it looks like some of them can stop using preloaded. Examples:
|
Turns out we can avoid breaking in many kata. See https://github.com/codewars/content-issues/wiki/List-of-Rust-Kata-to-Update @imjasonmiller can you help? |
Sure @kazk! I'll have a look at the kata tomorrow, as it's past midnight here. |
Deployed 1.50 having |
Updated most Rust kata to 1.50. See https://github.com/codewars/content-issues/wiki/List-of-Rust-Kata-to-Update for the remaining. |
I've been able to edit some, but I think I need to raise an issue in order to unlock editing the others? Some of the test cases are unfortunately locked as well, but this unlocks at 10K, right? |
Yeah, either issues or suggestions will work. The author or those contributed in the past can edit already, so letting them know with a suggestion comment (mentioning the wiki and what should be done) is a good idea.
Yeah. Thanks again for doing this, I'll try to help as well. |
Is your feature request related to a problem? Please describe.
I'm translating this kata to Rust, and I need to generate large random integers for testing. The
num
crate contains aBigUint
type which fits my purpose, and even has aRandBigInt
trait that generates random numbers — but that trait is only available if the "rand" feature is enabled on the "num" crate, which CodeWars doesn't do.Describe the solution you'd like
I'd like CodeWars to add the following to their Cargo.toml:
Describe alternatives you've considered
It's possible to copy the code from the num crate into each test suite, but doing so for each kata with big numbers would be bothersome.
The text was updated successfully, but these errors were encountered: