Skip to content

Commit

Permalink
gc support for wasm object (#95)
Browse files Browse the repository at this point in the history
* gc support for wasm object

* feat: bump ver

---------

Co-authored-by: SIDANWhatever <[email protected]>
  • Loading branch information
lisicky and HinsonSIDAN authored Oct 9, 2024
1 parent 101fbd8 commit 49768e9
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 13 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
6 changes: 3 additions & 3 deletions packages/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[workspace]
version = "0.9.0"
version = "0.9.1"
resolver = "2"
members = [
"sidan-csl-rs",
Expand Down
2 changes: 1 addition & 1 deletion packages/sidan-csl-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sidan-csl-rs"
version = "0.9.0"
version = "0.9.1"
edition = "2021"
license = "Apache-2.0"
description = "Wrapper around the cardano-serialization-lib for easier transaction building, heavily inspired by cardano-cli APIs"
Expand Down
4 changes: 2 additions & 2 deletions packages/whisky-examples/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "whisky-examples"
version = "0.9.0"
version = "0.9.1"
edition = "2021"
license = "Apache-2.0"
description = "The Cardano Rust SDK, inspired by MeshJS"
Expand All @@ -13,4 +13,4 @@ path = "src/server.rs"
actix-cors = "0.7.0"
actix-web = "4.9.0"
serde = "1.0.209"
whisky = { version = "=0.9.0", path = "../whisky" }
whisky = { version = "=0.9.1", path = "../whisky" }
4 changes: 2 additions & 2 deletions packages/whisky/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "whisky"
version = "0.9.0"
version = "0.9.1"
edition = "2021"
license = "Apache-2.0"
description = "The Cardano Rust SDK, inspired by MeshJS"
Expand All @@ -24,7 +24,7 @@ pallas-codec = { version = "0.30.2", features = ["num-bigint"] }
pallas-primitives = "0.30.2"
pallas-traverse = "0.30.2"
maestro-rust-sdk = "1.1.3"
sidan-csl-rs = { version = "=0.9.0", path = "../sidan-csl-rs" }
sidan-csl-rs = { version = "=0.9.1", path = "../sidan-csl-rs" }
reqwest = "0.12.5"
tokio = { version = "1.38.0", features = ["macros", "rt-multi-thread"] }

Expand Down

0 comments on commit 49768e9

Please sign in to comment.