Skip to content
This repository was archived by the owner on Sep 8, 2025. It is now read-only.

Commit 78a3eb5

Browse files
authored
Merge pull request #189 from alexcrichton/less-reexport
Don't reexport `VMStore, VMStoreRawPtr` to the public API
2 parents 3dbff50 + 46ff61f commit 78a3eb5

7 files changed

Lines changed: 13 additions & 12 deletions

File tree

crates/wasmtime/src/runtime.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ pub use values::*;
9090

9191
pub(crate) use uninhabited::*;
9292

93-
pub use vm::{VMStore, VMStoreRawPtr};
94-
9593
#[cfg(feature = "pooling-allocator")]
9694
pub use vm::PoolConcurrencyLimitError;
9795

crates/wasmtime/src/runtime/component/concurrent/futures_and_streams.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ use {
55
table::{TableDebug, TableId},
66
},
77
crate::{
8-
AsContextMut, StoreContextMut, VMStore, ValRaw,
8+
AsContextMut, StoreContextMut, ValRaw,
99
component::{
1010
Instance, Lower, Val, WasmList, WasmStr,
1111
func::{self, Lift, LiftContext, LowerContext, Options},
1212
matching::InstanceType,
1313
values::{ErrorContextAny, FutureAny, StreamAny},
1414
},
1515
store::{StoreOpaque, StoreToken},
16-
vm::{VMFuncRef, VMMemoryDefinition, component::ComponentInstance},
16+
vm::{VMFuncRef, VMMemoryDefinition, VMStore, component::ComponentInstance},
1717
},
1818
anyhow::{Context, Result, anyhow, bail},
1919
buffers::Extender,

crates/wasmtime/src/runtime/component/func/host.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ use crate::runtime::vm::SendSyncPtr;
99
use crate::runtime::vm::component::{
1010
ComponentInstance, InstanceFlags, VMComponentContext, VMLowering, VMLoweringCallee,
1111
};
12-
use crate::runtime::vm::{VMFuncRef, VMGlobalDefinition, VMMemoryDefinition, VMOpaqueContext};
13-
use crate::{AsContextMut, CallHook, StoreContextMut, VMStore, ValRaw};
12+
use crate::runtime::vm::{
13+
VMFuncRef, VMGlobalDefinition, VMMemoryDefinition, VMOpaqueContext, VMStore,
14+
};
15+
use crate::{AsContextMut, CallHook, StoreContextMut, ValRaw};
1416
use alloc::sync::Arc;
1517
use core::any::Any;
1618
use core::future::Future;

crates/wasmtime/src/runtime/component/instance.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ use crate::component::{
88
use crate::instance::OwnedImports;
99
use crate::linker::DefinitionType;
1010
use crate::prelude::*;
11-
use crate::runtime::vm::VMFuncRef;
1211
use crate::runtime::vm::component::{
1312
CallContexts, ComponentInstance, OwnedComponentInstance, ResourceTables, TypedResource,
1413
TypedResourceIndex,
1514
};
15+
use crate::runtime::vm::{VMFuncRef, VMStore};
1616
use crate::store::StoreOpaque;
17-
use crate::{AsContext, AsContextMut, Engine, Module, StoreContextMut, VMStore};
17+
use crate::{AsContext, AsContextMut, Engine, Module, StoreContextMut};
1818
use alloc::sync::Arc;
1919
use core::marker;
2020
use core::ptr::NonNull;

crates/wasmtime/src/runtime/component/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,11 +704,11 @@ pub mod bindgen_examples {}
704704
pub(crate) mod concurrent {
705705
use {
706706
crate::{
707-
VMStore,
708707
component::{
709708
Instance, Val,
710709
func::{ComponentType, LiftContext, LowerContext},
711710
},
711+
runtime::vm::VMStore,
712712
},
713713
alloc::{sync::Arc, task::Wake},
714714
anyhow::Result,

crates/wasmtime/src/runtime/store/data.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
use crate::runtime::vm;
1+
use crate::runtime::vm::{self, VMStore};
22
use crate::store::StoreOpaque;
3-
use crate::{StoreContext, StoreContextMut, VMStore};
3+
use crate::{StoreContext, StoreContextMut};
44
use core::num::NonZeroU64;
55
use core::ops::{Index, IndexMut};
66

crates/wasmtime/src/runtime/store/token.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
use crate::{StoreContextMut, VMStore, store::StoreId};
1+
use crate::runtime::vm::VMStore;
2+
use crate::{StoreContextMut, store::StoreId};
23
use core::marker::PhantomData;
34

45
pub struct StoreToken<T> {

0 commit comments

Comments
 (0)