Fuck wasm-pack
I started packaging ente with nix for self-hosting purposes. Over the week that I spent languishing in yarn lock hell a new beast reared its head: the Ente team pushed their rust core to prod. `rust-core` was a good excuse to learn how to package with crane, but in the course of `rust-wasm` an enemy from earlier in the year reared its head: wasm-pack. The binary insists on downloading wasm-opt and wasm-bindgen on its own; it spits in the face of your toolchain. People have been complaining about this since 2020:
- https://github.com/drager/wasm-pack/issues/812
- https://github.com/drager/wasm-pack/issues/821
https://github.com/drager/wasm-pack/issues/1316
And forget changing this behaviour, nobody seems to care even to explain why.
Submitting a PR to the ente team for them to switch to using wasm-bindgen directly, and never mind the boilerplate. Weeping in the meantime.