Skip to content

Allow WASM to use unsupported backend with JS feature disabled #745

@Worldwidebrine

Description

@Worldwidebrine

I'm trying to do something using WASM.
getrandom is required by a crate I need, but I am sure I am not going to invoke anything calling getrandom indirectly.

I get some strange JS imports about error handling, although I never want or need any.

I tried using the unsupported backend to get rid of it, but it turned out that as long as I enable JS feature, those imports will be generated, even if I'm using unsupported backend.

And cargo build just fails if JS feature is not enabled.

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