alexcrichton opened PR #8279 from alexcrichton:serve-support-more-flags
to bytecodealliance:main
:
More flags like
--dir
and--env
are moved intoRunCommon
to be shared betweenwasmtime serve
andwasmtime run
, meaning that theserve
command can now configure environment variables.A small test has been added as well as infrastructure for running tests with
wasmtime serve
itself. Previously there were no tests that executedwasmtime serve
.The
test_programs
crate had a small refactoring to avoid double-generation of http bindings.<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested fitzgen for a review on PR #8279.
alexcrichton requested wasmtime-core-reviewers for a review on PR #8279.
fitzgen commented on PR #8279:
Did we resolve the discussion in https://github.com/bytecodealliance/wasmtime/issues/8086 about whether we actually want to do this kind of thing or not?
alexcrichton commented on PR #8279:
As https://github.com/bytecodealliance/wasmtime/issues/8086 is just about the default. This PR doesn't change the defaults, it just enables
-Scli
to be somewhat useful onwasmtime serve
as previously you couldn't configure environment variables, preopens, etc.
fitzgen commented on PR #8279:
Ah okay, gotcha. Taking a look now.
fitzgen submitted PR review:
Nice!
fitzgen merged PR #8279.
Last updated: Nov 22 2024 at 16:03 UTC