Stream: git-wasmtime

Topic: wasmtime / issue #1655 Binfmt and argument passing


view this post on Zulip Wasmtime GitHub notifications bot (May 05 2022 at 16:56):

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.

view this post on Zulip Wasmtime GitHub notifications bot (May 05 2022 at 16:56):

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 --help opens Wasmtime's help, not the command ones.

But ./app.wasm -- --help works 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: Nov 22 2024 at 16:03 UTC