Skip to content

Is evalexpr compatible for WASM builds? #201

Description

@TimeTravelPenguin

I am working on a Typst plugin. I decided to try evalexpr because I need a way to send "functions" for evaluation from Typst to the WASM plugin, and the only feasible way to do this is via strings. Thus, evalexpr allows me to evaluate computations in this way.

After some attempts, I have not been able to successfully use this package, and I am not entirely sure why. I suspect it is not compatible with WASM or, at the very least, with whatever protocol Typst uses for its plugin system.

When I attempt to use my compiled plugin, I get a Typst error:

plugin panicked: wasm `unreachable` instruction executed

Would you have any idea as to what the issue may be? Do you have any suggestions for alternate packages?

Thanks

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions