#[macro_use]
pub(crate) mod func;
pub(crate) mod code;
pub(crate) mod code_memory;
pub(crate) mod debug;
pub(crate) mod externals;
pub(crate) mod gc;
pub(crate) mod instance;
pub(crate) mod instantiate;
pub(crate) mod limits;
pub(crate) mod linker;
pub(crate) mod memory;
pub(crate) mod module;
pub(crate) mod resources;
pub(crate) mod store;
pub(crate) mod trampoline;
pub(crate) mod trap;
pub(crate) mod type_registry;
pub(crate) mod types;
pub(crate) mod uninhabited;
pub(crate) mod v128;
pub(crate) mod values;
pub(crate) mod vm;
#[cfg(feature = "component-model")]
pub mod component;
cfg_if::cfg_if! {
if #[cfg(miri)] {
} else if #[cfg(unix)] {
pub mod unix;
} else if #[cfg(windows)] {
pub mod windows;
} else {
}
}
pub use code_memory::CodeMemory;
pub use externals::*;
pub use func::*;
pub use gc::*;
pub use instance::{Instance, InstancePre};
pub use instantiate::CompiledModule;
pub use limits::*;
pub use linker::*;
pub use memory::*;
pub use module::{Module, ModuleExport};
pub use resources::*;
#[cfg(feature = "async")]
pub use store::CallHookHandler;
pub use store::{
AsContext, AsContextMut, CallHook, Store, StoreContext, StoreContextMut, UpdateDeadline,
};
pub use trap::*;
pub use types::*;
pub use v128::V128;
pub use values::*;
pub(crate) use uninhabited::*;
#[cfg(feature = "pooling-allocator")]
pub use vm::PoolConcurrencyLimitError;
#[cfg(feature = "profiling")]
mod profiling;
#[cfg(feature = "profiling")]
pub use profiling::GuestProfiler;
#[cfg(feature = "async")]
pub(crate) mod stack;
#[cfg(feature = "async")]
pub use stack::*;
#[cfg(feature = "coredump")]
mod coredump;
#[cfg(feature = "coredump")]
pub use coredump::*;
fn _assertions_runtime() {
use crate::_assert_send_and_sync;
#[cfg(feature = "async")]
fn _assert_send<T: Send>(_t: T) {}
_assert_send_and_sync::<Caller<'_, ()>>();
_assert_send_and_sync::<ExternRef>();
_assert_send_and_sync::<(Func, TypedFunc<(), ()>, Global, Table, Memory)>();
_assert_send_and_sync::<Instance>();
_assert_send_and_sync::<InstancePre<()>>();
_assert_send_and_sync::<InstancePre<*mut u8>>();
_assert_send_and_sync::<Linker<()>>();
_assert_send_and_sync::<Linker<*mut u8>>();
_assert_send_and_sync::<Module>();
_assert_send_and_sync::<Store<()>>();
_assert_send_and_sync::<StoreContext<'_, ()>>();
_assert_send_and_sync::<StoreContextMut<'_, ()>>();
#[cfg(feature = "async")]
fn _call_async(s: &mut Store<()>, f: Func) {
_assert_send(f.call_async(&mut *s, &[], &mut []))
}
#[cfg(feature = "async")]
fn _typed_call_async(s: &mut Store<()>, f: TypedFunc<(), ()>) {
_assert_send(f.call_async(&mut *s, ()))
}
#[cfg(feature = "async")]
fn _instantiate_async(s: &mut Store<()>, m: &Module) {
_assert_send(Instance::new_async(s, m, &[]))
}
}