Add a VMComponentContext type and create it on instantiation (#4215)
* Add a `VMComponentContext` type and create it on instantiation This commit fills out the `wasmtime-runtime` crate's support for `VMComponentContext` and creates it as part of the instantiation process. This moves a few maps that were temporarily allocated in an `InstanceData` into the `VMComponentContext` and additionally reads the canonical options data from there instead. This type still won't be used in its "full glory" until the lowering of host functions is completely implemented, however, which will be coming in a future commit. * Remove `DerefMut` implementation * Rebase conflicts
This commit is contained in:
@@ -1058,7 +1058,7 @@ pub type VMTrampoline =
|
||||
/// mode to debug-assert that the casts here are correct and have at least a
|
||||
/// little protection against incorrect casts.
|
||||
pub struct VMOpaqueContext {
|
||||
magic: u32,
|
||||
pub(crate) magic: u32,
|
||||
_marker: marker::PhantomPinned,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user