Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WASM support #273

Open
notgull opened this issue May 13, 2023 · 2 comments
Open

Add WASM support #273

notgull opened this issue May 13, 2023 · 2 comments

Comments

@notgull
Copy link

notgull commented May 13, 2023

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

@stan-stately
Copy link

Just use wasm_bindgen(start)

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

@mmastrac
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants