diff --git a/crates/wasmtime/src/linker.rs b/crates/wasmtime/src/linker.rs index 21ec2787de..6fc1c4546d 100644 --- a/crates/wasmtime/src/linker.rs +++ b/crates/wasmtime/src/linker.rs @@ -82,6 +82,20 @@ pub struct Linker { _marker: marker::PhantomData T>, } +impl Clone for Linker { + fn clone(&self) -> Linker { + Linker { + engine: self.engine.clone(), + string2idx: self.string2idx.clone(), + strings: self.strings.clone(), + map: self.map.clone(), + allow_shadowing: self.allow_shadowing, + allow_unknown_exports: self.allow_unknown_exports, + _marker: self._marker, + } + } +} + #[derive(Copy, Clone, Hash, PartialEq, Eq)] struct ImportKey { name: usize,