Skip to content

Make it possible to not import specific generators  #965

@dbdr

Description

@dbdr

Background

I'm using rand for numerical simulations where cryptographic security is not required, while runtime speed and binary size are important. SmallRng is appropriate for my use. My issue is that chacha and hc are still downloaded and compiled even though I don't use them, wasting time and space. It would be useful if it was possible to use SmallRng with rand without pulling the other generators.

Feature request

Make chacha and hc optional features (they can be enabled by default if that's deemed desirable for most users).

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