bytecodealliance / wasmtime-py

Python WebAssembly runtime powered by Wasmtime
https://bytecodealliance.github.io/wasmtime-py/
Apache License 2.0
381 stars 52 forks source link

Can't run module with tail calls #204

Closed womeier closed 4 months ago

womeier commented 5 months ago

As the title suggests, I'd like to run a Wasm module with tail calls. Other proposals can be configured in the Config class, but not tail calls.

Would greatly appreciate it if there was an option for that as well.

alexcrichton commented 5 months ago

Thanks for the report! Wasmtime supports the underlying feature here but the config option hasn't been surfaced yet from the Wasmtime C API into these bindings. If you're up for it a PR to add a method to expose this would be greatly appreciated! It'd look quite similar to the other methods of exposing wasm features.

womeier commented 5 months ago

thanks!

Created a PR, but need help with testing it, see the PR.