rust-ctor icon indicating copy to clipboard operation
rust-ctor copied to clipboard

Add WASM support

Open notgull opened this issue 2 years ago • 2 comments

Maybe we could get the functions to fire once document.onload is called?

notgull avatar May 13 '23 14:05 notgull

Just use wasm_bindgen(start)

#[cfg_attr(not(target_family = "wasm"), ctor::ctor)]
#[cfg_attr(target_family = "wasm", wasm_bindgen(start))]
fn init() {
    // ...
}

stan-stately avatar Feb 16 '24 00:02 stan-stately

I can try implementing this, but I don't have a good toolchain setup to test.

mmastrac avatar May 21 '24 16:05 mmastrac