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#[macro_use]
46mod vmctxtypes;
47#[macro_use]
48mod vmtypes;
49mod vmoffsets;
50mod wasm_error;
51
52pub use self::ext::*;
53pub use crate::address_map::*;
54pub use crate::builtin::*;
55pub use crate::demangling::*;
56pub use crate::frame_table::*;
57pub use crate::gc::*;
58pub use crate::hostcall::*;
59pub use crate::key::*;
60pub use crate::module::*;
61pub use crate::module_artifacts::*;
62pub use crate::module_types::*;
63pub use crate::ref_bits::*;
64pub use crate::scopevec::ScopeVec;
65pub use crate::stack_map::*;
66pub use crate::stack_switching::*;
67pub use crate::string_pool::{Atom, StringPool};
68pub use crate::trap_encoding::*;
69pub use crate::tunables::*;
70pub use crate::types::*;
71pub use crate::vmctxtypes::{ArrayOffsets, VmctxArrayIndex};
72pub use crate::vmoffsets::*;
73pub use crate::wasm_error::*;
74pub use object;
75
76pub use wasmparser;
77
78#[cfg(feature = "compile")]
79mod compile;
80#[cfg(feature = "compile")]
81pub use crate::compile::*;
82
83#[cfg(feature = "component-model")]
84pub mod component;
85#[cfg(all(feature = "component-model", feature = "compile"))]
86pub mod fact;
87
88pub use cranelift_entity::*;
92
93pub use self::error::ToWasmtimeResult;
95#[doc(inline)]
96pub use wasmtime_core::error;
97
98pub use wasmtime_core::{alloc::PanicOnOom, non_max, undo::Undo};
99
100#[doc(hidden)]
102#[cfg(feature = "anyhow")]
103pub use anyhow;
104
105pub const VERSION: &str = env!("CARGO_PKG_VERSION");