wasm-futures-executor icon indicating copy to clipboard operation
wasm-futures-executor copied to clipboard

Use `thread_local` instead of (deprecated) JsStatic

Open maxime-tournier opened this issue 1 year ago • 0 comments

Hello there,

I tried compiling your crate with a recent rust nightly, which ended up in compilation errors.

I could fix them using thread_local instead of JsStatic (as per https://rustwasm.github.io/wasm-bindgen/reference/static-js-objects.html), hence this PR.

Please let me know if this seems reasonable to you?

maxime-tournier avatar Sep 06 '24 12:09 maxime-tournier