Fristi opened issue #5965:
Would
Clonebe possible forwasmtime::component::PreInstanceas well? There is aCloneforwasmtime::PreInstance.Use case: I would like use
tokio::spawnor other concurrent consumers of my WASM module to work, it seems you needClonefor that right ? (quite new to Rust)
alexcrichton commented on issue #5965:
Yep! I've added it in https://github.com/bytecodealliance/wasmtime/pull/5966
alexcrichton closed issue #5965:
Would
Clonebe possible forwasmtime::component::PreInstanceas well? There is aCloneforwasmtime::PreInstance.Use case: I would like use
tokio::spawnor other concurrent consumers of my WASM module to work, it seems you needClonefor that right ? (quite new to Rust)
Fristi commented on issue #5965:
Thanks for the quick addition! Was skimming through 6.0.1 tag and I saw the commit was in: https://github.com/bytecodealliance/wasmtime/compare/v6.0.1...main
But it seems not be in the crate/docs? https://docs.rs/wasmtime/latest/wasmtime/component/struct.InstancePre.html
alexcrichton commented on issue #5965:
Ah the 6.0.1 release was not for this issue, and this will get released with 8.0.0 that gets published on April 20
Last updated: Dec 13 2025 at 19:03 UTC