From da520290ce4ec82ccc48d8fc2dcda2a2fada9810 Mon Sep 17 00:00:00 2001 From: Noah Citron Date: Fri, 10 Feb 2023 12:47:57 -0500 Subject: [PATCH] fix: embedded wasm binary (#193) * fix: embedded wasm binary * remove public path * remove unused comments from run.sh --- .gitignore | 1 + Cargo.lock | 20 ++--- helios-ts/Cargo.toml | 2 +- helios-ts/index.html | 16 ++-- helios-ts/lib.ts | 10 ++- helios-ts/package-lock.json | 166 ++++++++++++++++++++++++++++++++++++ helios-ts/package.json | 4 +- helios-ts/run.sh | 1 - helios-ts/tsconfig.json | 4 +- helios-ts/webpack.config.js | 16 +++- 10 files changed, 214 insertions(+), 26 deletions(-) diff --git a/.gitignore b/.gitignore index 665475b..6273129 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ target helios-ts/node_modules helios-ts/dist +helios-ts/helios-*.tgz diff --git a/Cargo.lock b/Cargo.lock index 262c553..0a47e9b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4750,9 +4750,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eaf9f5aceeec8be17c128b2e93e031fb8a4d469bb9c4ae2d7dc1888b26887268" +checksum = "31f8dcbc21f30d9b8f2ea926ecb58f6b91192c17e9d33594b3df58b2007ca53b" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -4760,9 +4760,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c8ffb332579b0557b52d268b91feab8df3615f265d5270fec2a8c95b17c1142" +checksum = "95ce90fd5bcc06af55a641a86428ee4229e44e07033963a2290a8e241607ccb9" dependencies = [ "bumpalo", "log", @@ -4787,9 +4787,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "052be0f94026e6cbc75cdefc9bae13fd6052cdcaf532fa6c45e7ae33a1e6c810" +checksum = "4c21f77c0bedc37fd5dc21f897894a5ca01e7bb159884559461862ae90c0b4c5" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4797,9 +4797,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "07bc0c051dc5f23e307b13285f9d75df86bfdf816c5721e573dec1f9b8aa193c" +checksum = "2aff81306fcac3c7515ad4e177f521b5c9a15f2b08f4e32d823066102f35a5f6" dependencies = [ "proc-macro2", "quote", @@ -4810,9 +4810,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.83" +version = "0.2.84" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c38c045535d93ec4f0b4defec448e4291638ee608530863b1e2ba115d4fff7f" +checksum = "0046fef7e28c3804e5e38bfa31ea2a0f73905319b677e57ebe37e49358989b5d" [[package]] name = "wasm-timer" diff --git a/helios-ts/Cargo.toml b/helios-ts/Cargo.toml index 2ccef9f..bd9fe42 100644 --- a/helios-ts/Cargo.toml +++ b/helios-ts/Cargo.toml @@ -9,7 +9,7 @@ edition = "2021" crate-type = ["cdylib"] [dependencies] -wasm-bindgen = "0.2.83" +wasm-bindgen = "0.2.84" wasm-bindgen-futures = "0.4.33" serde-wasm-bindgen = "0.4.5" console_error_panic_hook = "0.1.7" diff --git a/helios-ts/index.html b/helios-ts/index.html index 48e0229..0e02a2a 100644 --- a/helios-ts/index.html +++ b/helios-ts/index.html @@ -5,18 +5,16 @@ hello-wasm example - +