Skip to content

Commit 061835a

Browse files
committed
WIP migration alex
1 parent 8c337f5 commit 061835a

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

render-wasm/Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

render-wasm/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ path = "src/main.rs"
2020
base64 = "0.22.1"
2121
gl = "0.14.0"
2222
indexmap = "2.7.1"
23-
skia-safe = { version = "0.81.0", default-features = false, features = [
23+
skia-safe = { version = "0.86.0", default-features = false, features = [
2424
"gl",
2525
"svg",
2626
"textlayout",
2727
"binary-cache",
28+
"webp"
2829
] }
2930
uuid = { version = "1.11.0", features = ["v4", "js"] }
3031

render-wasm/_build_env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ EMCC_CFLAGS="--no-entry \
3535
-sMAX_WEBGL_VERSION=2 \
3636
-sMODULARIZE=1 \
3737
-sEXPORT_NAME=createRustSkiaModule \
38-
-sEXPORTED_RUNTIME_METHODS=GL,stringToUTF8 \
38+
-sEXPORTED_RUNTIME_METHODS=GL,stringToUTF8,HEAPU8,HEAPU32 \
3939
-sEXPORT_ES6=1"
4040

4141
export EM_CACHE="/tmp/emsdk_cache";

render-wasm/build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pushd $_SCRIPT_DIR;
99
. ./_build_env
1010

1111
export CARGO_BUILD_TARGET=${CARGO_BUILD_TARGET:-"wasm32-unknown-emscripten"};
12-
export SKIA_BINARIES_URL=${SKIA_BINARIES_URL:-"https://github.com/penpot/skia-binaries/releases/download/0.81.0-3/skia-binaries-24dee32a277b6c7b5357-wasm32-unknown-emscripten-gl-svg-textlayout-binary-cache.tar.gz"}
12+
export SKIA_BINARIES_URL=${SKIA_BINARIES_URL:-"http://localhost:3449/wasm-playground/skia-binaries-cab569e6478958ca0783-wasm32-unknown-emscripten-gl-svg-textlayout-binary-cache-webp.tar.gz"}
1313

1414
cargo build $_CARGO_PARAMS
1515

render-wasm/watch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pushd $_SCRIPT_DIR;
77
. ./_build_env
88

99
export CARGO_BUILD_TARGET=${CARGO_BUILD_TARGET:-"wasm32-unknown-emscripten"};
10-
export SKIA_BINARIES_URL=${SKIA_BINARIES_URL:-"https://github.com/penpot/skia-binaries/releases/download/0.81.0-3/skia-binaries-24dee32a277b6c7b5357-wasm32-unknown-emscripten-gl-svg-textlayout-binary-cache.tar.gz"}
10+
export SKIA_BINARIES_URL=${SKIA_BINARIES_URL:-"http://localhost:3449/wasm-playground/skia-binaries-cab569e6478958ca0783-wasm32-unknown-emscripten-gl-svg-textlayout-binary-cache-webp.tar.gz"}
1111

1212
pushd $_SCRIPT_DIR;
1313
cargo watch \

0 commit comments

Comments
 (0)