Skip to content

Can't compile on WASM.  #35

@cwahn

Description

@cwahn

My project fails to get compiled at some point.
Clearly, the issue was regarding the mio, which is not supported on web assembly.

so I have checked the dependency tree with cargo tree --target wasm32-unknown-unknown.

├── reqwest-websocket v0.4.4
│   ├── futures-util v0.3.31 (*)
│   ├── reqwest v0.12.9 (*)
│   ├── thiserror v2.0.9
│   │   └── thiserror-impl v2.0.9 (proc-macro)
│   │       ├── proc-macro2 v1.0.92 (*)
│   │       ├── quote v1.0.37 (*)
│   │       └── syn v2.0.90 (*)
│   ├── tokio v1.42.0
│   │   ├── bytes v1.9.0
│   │   ├── mio v1.0.2
│   │   ├── pin-project-lite v0.2.14
│   │   └── tokio-macros v2.4.0 (proc-macro)
│   │       ├── proc-macro2 v1.0.92 (*)
│   │       ├── quote v1.0.37 (*)
│   │       └── syn v2.0.90 (*)
│   ├── tracing v0.1.40 (*)
│   └── web-sys v0.3.76 (*)

It turns out that reqwest-websocket is the only library try to get mio involved in the dependency tree.
So I would like to know if any one compiles this without error for wasm32 target, is there any thing I should try.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions