Skip to content

Commit 9d40c6e

Browse files
authored
Publicly expose wasmtime::component::Instance::instance_pre (#10761)
I ended up needing this in Spin, and it's already needed in Wasmtime's generated bindings, so let's commit to exposing this.
1 parent d9468c6 commit 9d40c6e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ impl Instance {
363363
))
364364
}
365365

366-
#[doc(hidden)]
366+
/// Returns the [`InstancePre`] that was used to create this instance.
367367
pub fn instance_pre<T>(&self, store: &impl AsContext<Data = T>) -> InstancePre<T> {
368368
// This indexing operation asserts the Store owns the Instance.
369369
// Therefore, the InstancePre<T> must match the Store<T>.

0 commit comments

Comments
 (0)