Skip to content

Disable std feature of rand_core by default? #702

Closed
@dhardy

Description

@dhardy

If we do this,

There isn't a lot of functionality in rand_core which is enabled by the std feature, but there is a little:

  • rand_core::Error::take_error is defined
  • rand_core::Error implements std::error::Error
  • std::io::Error implements From<rand_core::Error>
  • RngCore implements std::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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions