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
Disable std
feature of rand_core
by default?
#702
Comments
Note: all our In other words: most users of |
Isn't it disabled by default already? AFAIK all crates enable |
Sorry, I just merged #703. Before that, |
Ah, then it's indeed was a wrong behavior. |
If we do this,
rand_core
might have issues (if they don't request thestd
feature and try to use missing functionality)rand_core
(i.e. users ofrand
etc.) shouldn't notice any differences, so long as the direct dependencies use the feature correctlyrand
0.5 andrand
0.6 with default features turned off in the crate graph results in a compliation error #645, where the build happens to requirestd
inrand_core
(likely accidentally) but not inrand
There isn't a lot of functionality in
rand_core
which is enabled by thestd
feature, but there is a little:rand_core::Error::take_error
is definedrand_core::Error
implementsstd::error::Error
std::io::Error
implementsFrom<rand_core::Error>
RngCore
implementsstd::io::Read
Of course, this is potentially a breaking change, so we should bump the version number to 0.4.0 and have a shim 0.3 → 0.4 which still enables
std
by default — except, since the change is unlikely to cause much breakage and we are already breaking some builds, I wonder if it is worth it?The text was updated successfully, but these errors were encountered: