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
In the stream today, I ran into the issue that types with lifetimes cannot be returned from Rust to JavaScript, so instead we boxed the values and returned the pointers as u32s (eww).
It literally just occurred to me that, once we have the pointer as an integer, we can just wrap that in a newtype and then #[wasm_bindgen] to have a JavaScript typed object 🤩
The text was updated successfully, but these errors were encountered:
In the stream today, I ran into the issue that types with lifetimes cannot be returned from Rust to JavaScript, so instead we boxed the values and returned the pointers as
u32
s (eww).It literally just occurred to me that, once we have the pointer as an integer, we can just wrap that in a newtype and then
#[wasm_bindgen]
to have a JavaScript typed object 🤩The text was updated successfully, but these errors were encountered: