mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-10 22:58:18 +00:00
feat(deprecated) Rename Ctx::new to Ctx::new_uninit + unsafe.
This commit is contained in:
@@ -16,7 +16,7 @@ pub(crate) struct PreInstance {
|
||||
impl PreInstance {
|
||||
pub(crate) fn new() -> Self {
|
||||
Self {
|
||||
vmctx: Rc::new(RefCell::new(vm::Ctx::new())),
|
||||
vmctx: Rc::new(RefCell::new(unsafe { vm::Ctx::new_uninit() })),
|
||||
}
|
||||
}
|
||||
|
||||
@@ -98,6 +98,7 @@ impl LikeNamespace for Instance {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct Exports {
|
||||
pub(crate) new_exports: new::wasmer::Exports,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user