You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's simple to find out the flag set. The following seems to be working:
[features]
default = ["tokio/rt-multi-thread"]
wasm = ["getrandom/js", "tokio/time", "tokio/io-util"]
[dependencies]
# othersgetrandom = { version = "0.2.15", optional = true }
tokio = { version = "1.38.1", features = ["macros", "rt"] }
Then there are 2 problems to resolve. The first is that reqwest does not support cookies in WASM. (There are some PRs for that: seanmonstar/reqwest#2360, seanmonstar/reqwest#1753, and seanmonstar/reqwest#1449.) The second is that we need to provide a new method to upload files from memory since WASM does not have a filesystem.
There is an experimental branch (PR) that can be compiled to the wasm32-unknow-unknown target using cargo build --no-default-features -F wasm --target wasm32-unknown-unknown: #4
I think it's possible, but I may need to figure out the right feature flags for Tokio and Reqwest.
Some references:
The text was updated successfully, but these errors were encountered: