alexcrichton commented on issue #1655:
I'm going to close this since I don't think there's anything actionable for Wasmtime to implement for now. With features like the typed main proposal and such this may become more viable over time, but otherwise using Wasmtime for binfmt support is unlikely to be the best idea.
alexcrichton closed issue #1655:
I registered wasmtime to binfmt by adding config file to /etc/binfmt.d
/etc/binfmt.d/wasmtime.conf
:wasm32-wasi:M::\x00asm:\xff\xff\xff\xff:/usr/local/bin/wasmtime:But i can see there are some problems, for example with passing arguments.
For example
./app.wasm --helpopens Wasmtime's help, not the command ones.But
./app.wasm -- --helpworks fine.I did an workaround:
#!/bin/bash /usr/local/lib/wasmtime $1 -- ${*:2}but it isn't an elegant solution.
Some possibility to create an official binfmt?
Last updated: Dec 06 2025 at 06:05 UTC