wasm_bindgen
on async fn
doesn't accept same types that it does on regular fn
#2541
Labels
wasm_bindgen
on async fn
doesn't accept same types that it does on regular fn
#2541
Describe the Bug
Currently
#[wasm_bindgen]
onasync fn
seems to only accept types that areInto<JsValue>
, but many wasm-bindgen types are onlyIntoWasmAbi
, making it hard to convert synchronous code into asynchronous.Steps to Reproduce
Try to compile code like following:
Expected Behavior
Both functions compile successfully and generate their bindings.
Actual Behavior
Second function fails to compile due to:
The text was updated successfully, but these errors were encountered: