I think it'd be best if this had similar options to wasmtime run, for example --allow-precompiled, --dir, --env, and --profile. That being said I think it's also totally ok for this to be a follow-up PR too.
One thing that I think should also be done is to share the code that configures WASI, e.g. processing many of the -S options. For example in theory wasi-nn and such should all be possible to enable too. That would require some refactoring, however, so perhaps best to open an issue and/or file a follow-up PR for that.
I think it'd be best if this had similar options to
wasmtime run
, for example--allow-precompiled
,--dir
,--env
, and--profile
. That being said I think it's also totally ok for this to be a follow-up PR too.One thing that I think should also be done is to share the code that configures WASI, e.g. processing many of the
-S
options. For example in theorywasi-nn
and such should all be possible to enable too. That would require some refactoring, however, so perhaps best to open an issue and/or file a follow-up PR for that._Originally posted by @alexcrichton in https://github.com/bytecodealliance/wasmtime/pull/7091#discussion_r1340537640_