Using clap on wasm #5257
Replies: 2 comments 3 replies
-
I've never used it with wasm personally so its hard to say. Just judging from that call stack, it looks like a call to |
Beta Was this translation helpful? Give feedback.
-
The runner you are using, wasm-server-runner does not provide env.args(). There is a workaround I am working on. Also the stdoout / stderr issues. Putting the text to log instead of stdout / stderr. But that is just details. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Apologies if this is a stupid question. How can I use clap over wasm?
I have
target = wasm32-unknown-unknown
andI launch my app with
cargo run --target wasm32-unknown-unknown -- client -c 1
(the arguments at the end should be parsed by clap), but i'm getting:I couldn't figure out after some googling what I am supposed to do
Beta Was this translation helpful? Give feedback.
All reactions