Skip to content

Enable riker to build in wasm #151

Description

@nothingismagick

Trying to get Riker to build in a project using:

cargo build --target=wasm32-unknown-unknown

but it failed with:

error[E0599]: no function or associated item named `new_v4` found for struct `uuid::Uuid` in the current scope
   --> /[redacted]/riker-0.4.2/src/actor/actor_cell.rs:609:24
    |
609 |         let id = Uuid::new_v4();
    |                        ^^^^^^ function or associated item not found in `uuid::Uuid`

I did some quick research and discovered that to enable wasm32 ini uuid, the fix is pretty trivial:

uuid = { version = "0.8.1", features = ["v4", "wasm-bindgen"] }

I tested it by locally building riker and also the consuming project. So its a pretty easy win... Thoughts? I can PR if you agree there is no problem with this.

Activity

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