Skip to content

Figure out how to manage future getrandom upgrades #792

@KodrAus

Description

@KodrAus

It looks like getrandom's 0.3.x release treats wasm targets a bit differently than 0.2.x. In uuid, we just require a js feature to support RNG in wasm32-unknown-unknown via getrandom, which sniffs out web crypto APIs. In 0.3.x, it looks like you need to set RUSTFLAGS to make this work. If we upgrade our version of getrandom, we'll break existing users of it via the js feature.

We may just need to vendor in the old getrandom impl, so long as we can still compile getrandom 0.3.x on wasm32-unknown-unknown without setting RUSTFLAGS.

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