Skip to content

Commit

Permalink
gc support for wasm object
Browse files Browse the repository at this point in the history
  • Loading branch information
lisicky committed Oct 9, 2024
1 parent 101fbd8 commit 4f7fe95
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"version": "0.0.0",
"description": "(De)serialization functions for the Cardano blockchain along with related utility functions",
"scripts": {
"core:build-nodejs": "(rimraf ./packages/sidan-csl-rs/pkg && cd packages/sidan-csl-rs; wasm-pack build --target=nodejs; cd ../..; npm run js:ts-json-gen; cd packages/sidan-csl-rs; wasm-pack pack) && npm run js:flowgen",
"core:build-browser": "(rimraf ./packages/sidan-csl-rs/pkg && cd packages/sidan-csl-rs; wasm-pack build --target=browser; cd ../..; npm run js:ts-json-gen; cd packages/sidan-csl-rs; wasm-pack pack) && npm run js:flowgen",
"core:build-web": "(rimraf ./packages/sidan-csl-rs/pkg && cd packages/sidan-csl-rs; wasm-pack build --target=web; cd ../..; npm run js:ts-json-gen; cd packages/sidan-csl-rs; wasm-pack pack) && npm run js:flowgen",
"core:build-asm": "(rimraf ./packages/sidan-csl-rs/pkg && cd packages/sidan-csl-rs; wasm-pack build --target=browser; cd ../..; npm run js:ts-json-gen; cd packages/sidan-csl-rs; wasm-pack pack) && npm run asm:build && npm run js:flowgen",
"core:build-nodejs": "(rimraf ./packages/sidan-csl-rs/pkg && cd packages/sidan-csl-rs; WASM_BINDGEN_WEAKREF=1 wasm-pack build --target=nodejs; cd ../..; npm run js:ts-json-gen; cd packages/sidan-csl-rs; wasm-pack pack) && npm run js:flowgen",
"core:build-browser": "(rimraf ./packages/sidan-csl-rs/pkg && cd packages/sidan-csl-rs; WASM_BINDGEN_WEAKREF=1 wasm-pack build --target=browser; cd ../..; npm run js:ts-json-gen; cd packages/sidan-csl-rs; wasm-pack pack) && npm run js:flowgen",
"core:build-web": "(rimraf ./packages/sidan-csl-rs/pkg && cd packages/sidan-csl-rs; WASM_BINDGEN_WEAKREF=1 wasm-pack build --target=web; cd ../..; npm run js:ts-json-gen; cd packages/sidan-csl-rs; wasm-pack pack) && npm run js:flowgen",
"core:build-asm": "(rimraf ./packages/sidan-csl-rs/pkg && cd packages/sidan-csl-rs; WASM_BINDGEN_WEAKREF=1 wasm-pack build --target=browser; cd ../..; npm run js:ts-json-gen; cd packages/sidan-csl-rs; wasm-pack pack) && npm run asm:build && npm run js:flowgen",
"rust:publish": "cd packages/whisky && cargo publish && cd ../",
"asm:build": "./binaryen/bin/wasm2js ./packages/sidan-csl-rs/pkg/sidan_csl_rs_bg.wasm --output ./packages/sidan-csl-rs/pkg/sidan_csl_rs.asm.js && node ./scripts/wasm-to-asm && node ./scripts/fix-buffer-ref.js",
"core:check-warnings": "(cd packages/sidan-csl-rs; RUSTFLAGS=\"-D warnings\" cargo +stable build)",
Expand Down

0 comments on commit 4f7fe95

Please sign in to comment.