guest271314 opened issue #9103:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
Option to turn off and clear automatic module caching to
~/.cache/wasmtime/modules/wasmtime-.Benefit
When testing the contents of
~/.cache/wasmtime/modules/wasmtime-can continue to grow exponentially.Implementation
Add an option to
- Run the
.wasmfile directly without caching- Option to automatically remove the cached folders and files after the
.wasmfile is run- Option to remove the contents of
wasmtimecached modules, e.g., with Bun we can dobun pm cache rmAlternatives
Unknown.
bjorn3 commented on issue #9103:
You can disable the cache globally by writing
[cache] enabled = falseto
~/.config/wasmtime/config.toml.To disable the cache for a single invocation use
-C cache=n. To remove the cache you can remove the~/.cache/wasmtimedirectory.
guest271314 commented on issue #9103:
@bjorn3 That works. I had to create the
~/.config/wasmtimedirectory andconfig.tomlfile. Is this documented somewhere here?
guest271314 closed issue #9103:
Thanks for filing a feature request! Please fill out the TODOs below.
Feature
Option to turn off and clear automatic module caching to
~/.cache/wasmtime/modules/wasmtime-.Benefit
When testing the contents of
~/.cache/wasmtime/modules/wasmtime-can continue to grow exponentially.Implementation
Add an option to
- Run the
.wasmfile directly without caching- Option to automatically remove the cached folders and files after the
.wasmfile is run- Option to remove the contents of
wasmtimecached modules, e.g., with Bun we can dobun pm cache rmAlternatives
Unknown.
bjorn3 commented on issue #9103:
The
wasmtime config newcommand creates this file with the default configs filled in. It also prints the path to the config file it created.
guest271314 commented on issue #9103:
Thanks.
Would help if the content of the wasmtime "guide" was conspicuously in the README.
I still don't know what
wasmtime-mindoes and how to use that executable.
bjorn3 commented on issue #9103:
I still don't know what wasmtime-min does and how to use that executable.
It is the wasmtime executable, except with every optional feature (like wasi support) disabled and optimized for size. You should ignore it unless you actually need a tiny wasmtime binary for some reason.
guest271314 commented on issue #9103:
You should ignore it unless you actually need a tiny wasmtime binary for some reason.
Testing.
except with every optional feature (like wasi support) disabled
I guess that explains why
wasmtime-mindoesn't execute code compiled withjavy.
Last updated: Dec 13 2025 at 19:03 UTC