Stream: git-wasmtime

Topic: wasmtime / PR #14217 Support environment variables for mo...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 21:37):

alexcrichton opened PR #14217 from alexcrichton:env-var-options to bytecodealliance:main:

This commit adds support to use environment variables in addition to CLI
flags when configuring wasmtime execution. This is applied to all
"option groups" of Wasmtime, such as -W, -S, -O, etc. Options can
be specified as a group:

WASMTIME_OPTIMIZE=opt-level=1,...

or individually:

WASMTIME_OPTIMIZE_OPT_LEVEL=1

CLI configuration overrides environment variables, and environment
variables override file-based configuration. Errors are reported as
usual if any environment variable fails to parse.

Note: I wasn't super happy with the state of cli_tests.rs so I did some initial refactoring in the first commit in this PR. That's not specifically related to this change and isn't intended to change anything, but is aspirationally a cleanup of those tests.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 21:37):

alexcrichton requested pchickey for a review on PR #14217.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 21:37):

alexcrichton requested wasmtime-core-reviewers for a review on PR #14217.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 21:37):

alexcrichton requested fitzgen for a review on PR #14217.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 21:37):

alexcrichton requested wasmtime-default-reviewers for a review on PR #14217.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 21:44):

:thumbs_up: pchickey submitted PR review:

Looks good, thank you for cleaning up the cli tests stuff as well

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 21:47):

alexcrichton has enabled auto merge for PR #14217.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 21:50):

alexcrichton added PR #14217 Support environment variables for most CLI arguments to the merge queue.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 22:16):

:check: alexcrichton merged PR #14217.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 26 2026 at 22:16):

alexcrichton removed PR #14217 Support environment variables for most CLI arguments from the merge queue.


Last updated: Aug 30 2026 at 09:07 UTC