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?
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