Sorry to hijack this issue tracker. But I didn't know how to contact you.
I've been trying to use tree-sitter-c2rust to create a typst plugin. They support WASM plugins. The issue I encounter is that, as soon as I call into the library, my process crashes due to an infinite recursion. For example creating a parser using Parser::new().
The runtime in question is wasmi. They have a pretty big stack size of 2MB by default. And I still hit the stack overflow. That's why I think it is caused by infinite recursion.
Did you happen to have a similar issue when working on this project?