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 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]