Stream: wasmtime

Topic: wasmtime serve filesystem access


view this post on Zulip Daniel Macovei (Aug 19 2024 at 16:09):

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?

view this post on Zulip Alex Crichton (Aug 19 2024 at 16:11):

I think --dir should work, but is it not locally?

view this post on Zulip Daniel Macovei (Aug 19 2024 at 16:12):

error: unexpected argument '--dir' found

  tip: a similar argument exists: '--addr'

Usage: wasmtime serve --addr <SOCKADDR> <WASM>

view this post on Zulip fitzgen (he/him) (Aug 19 2024 at 16:12):

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

view this post on Zulip Daniel Macovei (Aug 19 2024 at 16:12):

it also doesn't show up when doing wasmtime serve --help

view this post on Zulip Daniel Macovei (Aug 19 2024 at 16:13):

i might have an old version of wasmtime...

view this post on Zulip fitzgen (he/him) (Aug 19 2024 at 16:13):

it sounds like that is probably the case, it works for me locally

view this post on Zulip Daniel Macovei (Aug 19 2024 at 16:14):

yep that was it! sorry about that!


Last updated: Nov 22 2024 at 17:03 UTC