Skip to content

Consider using web_sys and unifying wasm32-unknown-unknown targets #63

Closed
@josephlr

Description

@josephlr

Right now, stdweb depends on wasm-bindgen so it doesn't really make a whole lot of sense to have two seperate implementations in getrandom for this.

A better approach might just be to depend on the web_sys crate from the wasm-bindgen repo and eliminate the need for separate wasm32 features.

I'm not sure how this would work with Node, but for Client Web, we could just use Crypto::get_random_values_with_u8_array

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