Stream: wasmtime

Topic: wasmtime version access


view this post on Zulip becker (Sep 23 2025 at 17:50):

Hello,

I am working on a project using wasmtime. I am precompiling a number of wasm files when i start my server. I would like to access wasmtime's version when building my local cache. I know from this issue https://github.com/bytecodealliance/wasmtime/issues/11685 that a precompiled binary should be fine between major versions.

i searched https://docs.rs/wasmtime/latest/wasmtime/?search=version but i dont see how i can access the current version for my cache key.

i can use a build script and extract it from my Cargo.toml.

a wasmtime::version() would be nice to have. unless there is another way to get this value?

We are embedding wasmtime in hyperlight-wasm. We do not support being able to compile wasm in hyperlight-wasm so we compile to cwasm offline and load those compiled versions at runtime. This create...

view this post on Zulip Alex Crichton (Sep 23 2025 at 20:21):

Currently no function is exposed for this, but adding one would be quite reasonable! Would you be up for sending a PR for this?


Last updated: Dec 06 2025 at 06:05 UTC