Skip to content

Stop forwarding getrandom's wasm features #886

@dhardy

Description

@dhardy

For rand 0.8, I suggest we stop forwarding these features in rand. Since this is currently the only reason we depend on the getrandom crate directly, this allows us to remove the getrandom_package rename hack, thus also clearing up #881.

This means that WASM users (who are using wasm32-unknown-unknown instead of the newer wasm32-wasi target) will need to depend on getrandom directly (but see also rust-random/getrandom#63).

Likely we would retain the getrandom feature: default → std → getrandom → rand_core/getrandom, though we could also drop that (default → std → rand_core/getrandom).

This is technically a breaking change, thus we can't do so before 0.8 (which likely won't be soon).

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-APIBreakage: APIP-postponeWaiting on something else

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions