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
.wasm
file directly without caching- Option to automatically remove the cached folders and files after the
.wasm
file is run- Option to remove the contents of
wasmtime
cached modules, e.g., with Bun we can dobun pm cache rm
Alternatives
Unknown.
bjorn3 commented on issue #9103:
You can disable the cache globally by writing
[cache] enabled = false
to
~/.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/wasmtime
directory.
guest271314 commented on issue #9103:
@bjorn3 That works. I had to create the
~/.config/wasmtime
directory andconfig.toml
file. 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
.wasm
file directly without caching- Option to automatically remove the cached folders and files after the
.wasm
file is run- Option to remove the contents of
wasmtime
cached modules, e.g., with Bun we can dobun pm cache rm
Alternatives
Unknown.
bjorn3 commented on issue #9103:
The
wasmtime config new
command 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-min
does 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-min
doesn't execute code compiled withjavy
.
Last updated: Nov 22 2024 at 16:03 UTC