1#![deny(missing_docs)]
11#![warn(clippy::cast_sign_loss)]
12#![no_std]
13
14#[cfg(any(feature = "std", test))]
15#[macro_use]
16extern crate std;
17extern crate alloc;
18
19pub mod collections;
20pub mod graphs;
21pub mod prelude;
22
23mod address_map;
24mod frame_table;
25#[macro_use]
26mod builtin;
27pub mod bytes;
28mod demangling;
29mod ext;
30mod gc;
31mod hostcall;
32mod key;
33mod module;
34mod module_artifacts;
35mod module_types;
36pub mod obj;
37mod ref_bits;
38mod scopevec;
39mod stack_map;
40mod stack_switching;
41mod string_pool;
42mod trap_encoding;
43mod tunables;
44mod types;
45#[cfg(all(feature = "component-model", feature = "compile"))]
46mod union_find;
47#[macro_use]
48mod vmctxtypes;
49#[macro_use]
50mod vmtypes;
51mod vmoffsets;
52mod wasm_error;
53
54pub use self::ext::*;
55pub use crate::address_map::*;
56pub use crate::builtin::*;
57pub use crate::demangling::*;
58pub use crate::frame_table::*;
59pub use crate::gc::*;
60pub use crate::hostcall::*;
61pub use crate::key::*;
62pub use crate::module::*;
63pub use crate::module_artifacts::*;
64pub use crate::module_types::*;
65pub use crate::ref_bits::*;
66pub use crate::scopevec::ScopeVec;
67pub use crate::stack_map::*;
68pub use crate::stack_switching::*;
69pub use crate::string_pool::{Atom, StringPool};
70pub use crate::trap_encoding::*;
71pub use crate::tunables::*;
72pub use crate::types::*;
73pub use crate::vmctxtypes::{ArrayOffsets, VmctxArrayIndex};
74pub use crate::vmoffsets::*;
75pub use crate::wasm_error::*;
76pub use object;
77
78pub use wasmparser;
79
80#[cfg(feature = "compile")]
81mod compile;
82#[cfg(feature = "compile")]
83pub use crate::compile::*;
84
85#[cfg(feature = "component-model")]
86pub mod component;
87#[cfg(all(feature = "component-model", feature = "compile"))]
88pub mod fact;
89
90pub use cranelift_entity::*;
94
95pub use self::error::ToWasmtimeResult;
97#[doc(inline)]
98pub use wasmtime_core::error;
99
100pub use wasmtime_core::{alloc::PanicOnOom, non_max, undo::Undo};
101
102#[doc(hidden)]
104#[cfg(feature = "anyhow")]
105pub use anyhow;
106
107pub const VERSION: &str = env!("CARGO_PKG_VERSION");
109
110#[cfg(all(test, feature = "component-model", feature = "compile"))]
113fn property_check() -> mutatis::check::Check {
114 let mut check = mutatis::check::Check::new();
115 if cfg!(miri) {
116 check.iters(2).shrink_iters(0);
117 }
118 check
119}