Is there a way to use preopens, or do the equivalent of --dir
when using wasmtime serve
? If not, would this be a welcome PR? Perhaps there's a reason I'm unaware of for this not being around today?
I think --dir
should work, but is it not locally?
error: unexpected argument '--dir' found
tip: a similar argument exists: '--addr'
Usage: wasmtime serve --addr <SOCKADDR> <WASM>
yeah the ServeCommand
contains a RunCommon
which has the --dir
implementation, so it should be working and is intended to be; sounds like there is a bug
it also doesn't show up when doing wasmtime serve --help
i might have an old version of wasmtime...
it sounds like that is probably the case, it works for me locally
yep that was it! sorry about that!
Last updated: Dec 23 2024 at 14:03 UTC