Skip to content

0.8.1 fails to compile for no-std #141

Closed

Description

@schungx

The added feature of getrandom/js is breaking no-std builds by pulling in wasm-bindgen (for no reason).

EDIT: rust-lang/cargo#4866 and rust-lang/cargo#1197 document the fact that target-specific features are not supported. All features are merged regardless of target.

This is an issue in addition to #140.

Activity

  1. schungx commented on Nov 5, 2022

    @schungx
    ContributorAuthor

    I strong concur with #140 that the best solution is to add a js feature which turns on getrandom/js.

    JavaScript interop is really an external feature outside of core target architecture and O/S, so it is reasonable to assume that it should be specifically specified.

    Assuming the existence of JavaScript for all wasm and no-std targets is simply wrong; since not all warm runs on a browser, and no-std most likely doesn't have JavaScript around.

  2. tkaitchuck commented on Nov 10, 2022

    @tkaitchuck
    Owner

    Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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