2 releases

0.2.1 Jun 3, 2023
0.2.0 Jun 3, 2023

#12 in #exported

Download history 1838/week @ 2024-01-04 1789/week @ 2024-01-11 948/week @ 2024-01-18 416/week @ 2024-01-25 394/week @ 2024-02-01 397/week @ 2024-02-08 281/week @ 2024-02-15 237/week @ 2024-02-22 363/week @ 2024-02-29 606/week @ 2024-03-07 435/week @ 2024-03-14 426/week @ 2024-03-21 803/week @ 2024-03-28 627/week @ 2024-04-04 532/week @ 2024-04-11 464/week @ 2024-04-18

2,513 downloads per month
Used in 6 crates (via wasm-bindgen-derive)

MIT license

9KB
136 lines

Trait derivation macros for wasm-bindgen

crate Docs License Build Status

This crate contains a derivation macro for TryFrom<&JsValue> for T, where T is a type exported to JavaScript. See the documentation for usage examples.


lib.rs:

A proc-macro to be re-exported by wasm-bindgen-derive. We need this trampoline to enforce the correct bounds on the wasm-bindgen and js-sys dependencies, but those are technically not the dependencies of this crate, but only of the code it generates.

Dependencies

~1.5MB
~34K SLoC