diff --git a/lib/deprecated/runtime-core/src/instance.rs b/lib/deprecated/runtime-core/src/instance.rs index 856ca7edc..348ae93fc 100644 --- a/lib/deprecated/runtime-core/src/instance.rs +++ b/lib/deprecated/runtime-core/src/instance.rs @@ -3,6 +3,7 @@ use std::{convert::Infallible, error::Error}; pub use new::wasmer::Exports; +#[derive(Clone)] pub struct Instance { #[deprecated( since = "__NEXT_VERSION__", diff --git a/lib/deprecated/runtime-core/src/module.rs b/lib/deprecated/runtime-core/src/module.rs index 06321e96a..395029340 100644 --- a/lib/deprecated/runtime-core/src/module.rs +++ b/lib/deprecated/runtime-core/src/module.rs @@ -3,6 +3,7 @@ use std::convert::Infallible; pub use new::wasm_common::{DataInitializer, ExportIndex}; +#[derive(Clone)] pub struct Module { pub(crate) new_module: new::wasmer::Module, }