fedimint-web-sdk icon indicating copy to clipboard operation
fedimint-web-sdk copied to clipboard

Generate WASM bindings in Nix

Open elsirion opened this issue 8 months ago • 1 comments

Instead of checking in the wasm-web and wasm-bundler packages we could generate them as nix outputs and e.g. symlink them into the repo when entering the dev shell.

elsirion avatar Mar 06 '25 17:03 elsirion

> nix build github:fedimint/fedimint#wasm32-unknown.release.wasmBundle
# ...
> ls result/share/fedimint-client-wasm/
fedimint_client_wasm_bg.js    fedimint_client_wasm_bg.wasm.d.ts  fedimint_client_wasm.js
fedimint_client_wasm_bg.wasm  fedimint_client_wasm.d.ts          package.json

dpc avatar Mar 06 '25 17:03 dpc

Implemented per https://github.com/fedimint/fedimint-web-sdk/pull/163. So much better.

alexlwn123 avatar Jul 01 '25 17:07 alexlwn123