#wasm-bindgen #struct #back #wrapper #generated #original #javascript

wasm-bindgen-downcast

Downcast a JavaScript wrapper generated by wasm-bindgen back to its original struct

2 releases

0.1.1 Dec 1, 2022
0.1.0 Dec 1, 2022

#1207 in WebAssembly

Download history 2172/week @ 2024-03-14 2454/week @ 2024-03-21 2408/week @ 2024-03-28 1738/week @ 2024-04-04 3451/week @ 2024-04-11 2998/week @ 2024-04-18 2010/week @ 2024-04-25 1937/week @ 2024-05-02 5257/week @ 2024-05-09 6262/week @ 2024-05-16 8537/week @ 2024-05-23 6719/week @ 2024-05-30 1790/week @ 2024-06-06 1975/week @ 2024-06-13 2427/week @ 2024-06-20 1666/week @ 2024-06-27

8,399 downloads per month
Used in 61 crates (via rhizomedb-wasm)

MIT/Apache

9KB
72 lines

wasm-bindgen-downcast

Continuous integration

(API Docs)

Downcast a JavaScript wrapper generated by wasm-bindgen back to its original struct.

This is a workaround for rustwasm/wasm-bindgen#2231 that is robust with respect to minification (something other solutions can't handle).

License

This project is licensed under either of

at your option.

It is recommended to always use cargo crev to verify the trustworthiness of each of your dependencies, including this one.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

The intent of this crate is to be free of soundness bugs. The developers will do their best to avoid them, and welcome help in analysing and fixing them.

Dependencies

~1–1.7MB
~31K SLoC