From 321354dcb7b04e69400f5b5ee699456ebe6fd523 Mon Sep 17 00:00:00 2001 From: Cryptex <64497526+Cryptex-github@users.noreply.github.com> Date: Mon, 21 Nov 2022 11:32:38 -0800 Subject: [PATCH 1/2] Link libwebp statically --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 5dc477d31..79d822331 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ png = { version = "^0.17", optional = true } jpeg-decoder = { version = "^0.3", optional = true } jpeg-encoder = { version = "^0.5", features = ["simd"], optional = true } gif = { version = "^0.12", optional = true } -libwebp-sys2 = { version = "^0.1", features = ["1_2", "mux", "demux"], optional = true } +libwebp-sys2 = { version = "^0.1", features = ["1_2", "mux", "demux", "static"], optional = true } fontdue = { version = "^0.7", optional = true } [features] From f5f9fc7f5e5dc9c588c83f89c3f364e02c505242 Mon Sep 17 00:00:00 2001 From: Cryptex <64497526+Cryptex-github@users.noreply.github.com> Date: Mon, 21 Nov 2022 11:45:56 -0800 Subject: [PATCH 2/2] print stdlib.h path --- .github/workflows/wasm.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 78d4ee1f6..c736429ea 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -27,6 +27,9 @@ jobs: - name: Setup cache uses: Swatinem/rust-cache@v1 + + - name: Find stdlib.h + run: sudo find / -name stdlib.h - name: Build wasm32-unknown-unknown run: cargo build --all-features --target wasm32-unknown-unknown