Skip to content

locals exceed maximum error with wasm-pack on big match #981

@Tpt

Description

@Tpt

🐛 Bug description

Compiling oxigraph JS with wasm-pack fails with the following error:

error: failed to parse input file as wasm

Caused by:
    locals exceed maximum (at offset 10564186)

Here is a failing CI build and a working CI build from earlier the same day
Both builds use wasm-pack 1.9.1 and Rust 1.50 stable.

This error is caused by the big match introduced in quick-xml 0.21.

🤔 Expected Behavior

Proper compilation

👟 Steps to reproduce

git clone https://github.com/oxigraph/oxigraph
cd oxigraph/js
wasm-pack build --dev --target nodejs 

🌍 Your environment

Include the relevant details of your environment.
wasm-pack version: 0.9.1
rustc version: 1.50

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions