diff --git a/Cargo.toml b/Cargo.toml index 7c58ac8..fd18705 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rxing-wasm" -version = "0.3.3" +version = "0.3.5" edition = "2021" description = "wasm bindings for rxing to provide commong barcode operations (decode/encode)" repository = "https://github.com/rxing-core/rxing-wasm" @@ -26,7 +26,7 @@ web-sys = {version = "0.3.76", features = ["CanvasRenderingContext2d", "HtmlCan # code size when deploying. console_error_panic_hook = { version = "0.1.7", optional = true } -rxing = {version = "~0.6.3", default-features = false, features = ["wasm_support"]} +rxing = {version = "~0.6.5", default-features = false, features = ["wasm_support"]} #rxing = {path="../rxing", version = "~0.2.23", default-features = false, features = ["wasm_support"]} [dev-dependencies] diff --git a/build-wasm.sh b/build-wasm.sh index 777b874..2d81ad4 100755 --- a/build-wasm.sh +++ b/build-wasm.sh @@ -1,5 +1,5 @@ #! /bin/sh wasm-pack build --release -wasm-opt pkg/rxing_wasm_bg.wasm -o pkg/rxing_wasm_bg-opt.wasm --enable-bulk-memory -O1 --inlining-optimizing --heap-store-optimization --optimize-casts -O4 +wasm-opt pkg/rxing_wasm_bg.wasm -o pkg/rxing_wasm_bg-opt.wasm --enable-bulk-memory -O1 --inlining-optimizing --heap-store-optimization --optimize-casts -Oz -O4 mv pkg/rxing_wasm_bg-opt.wasm pkg/rxing_wasm_bg.wasm diff --git a/examples/webpack+js/index.html b/examples/webpack+js/index.html index adc34d4..c45b644 100644 --- a/examples/webpack+js/index.html +++ b/examples/webpack+js/index.html @@ -106,4 +106,4 @@