Skip to content

Commit

Permalink
chore(wasm-sdk): cargo.toml fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Jan 22, 2025
1 parent 514e723 commit 2336773
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@ members = [
"packages/rs-json-schema-compatibility-validator",
"packages/check-features",
"packages/wallet-utils-contract",
# "packages/wasm-sdk", # This one is experimental and not ready for use
]


exclude = ["packages/wasm-sdk"] # This one is experimental and not ready for use

[workspace.package]

rust-version = "1.83"
Expand Down
1 change: 1 addition & 0 deletions packages/wasm-sdk/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Cargo.lock
3 changes: 1 addition & 2 deletions packages/wasm-sdk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[package]
name = "wasm-sdk"
version = "0.1.0"
edition = "2021"
rust-version.workspace = true
# rust-version.workspace = true
publish = false
[lib]
crate-type = ["cdylib"]
Expand Down
12 changes: 12 additions & 0 deletions packages/wasm-sdk/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#! /bin/bash
#
# Build WASM-SDK.
#
# EXPERIMENTAL: This script is experimental and may be removed in the future.
#

set -ex -o pipefail

wasm-pack build --target web --release --no-opt
wasm-opt -tnh --flatten --rereloop -Oz --gufa -Oz --gufa -Oz -o pkg/optimized.wasm pkg/wasm_sdk_bg.wasm
ls -lah pkg

0 comments on commit 2336773

Please sign in to comment.