Wasmbindgen dependencies

Am I reading:

correctly?

That wasmbidngen basically has no dependencies. The two serde are optional. There is a dependency on wasmbdingen_macro and cfg-if.

This is surprising to me as I (incorrrectly?) thought (for some reason) that wasmbindgen was a huge dependency, perhaps confusing it with web-sys.

wasm-bindgen is indeed small, because it is not concerned with the exact environment it's executed in. It just generates the bindings, which could then be used together with the web-sys in browser, or in Node, or in any other JS/Wasm runtime. It is less of an actual logic and more of the glue code, like Serde is a glue between user structures and data formats.