wasmtime_environ/
lib.rs

1//! Internal dependency of the `wasmtime` crate.
2//!
3//! This crate is responsible for defining types and basic runtime structures
4//! used by the `wasmtime` crate. This additionally defines primitives of
5//! compilation and what compilers are expected to emit.
6//!
7//! If you don't already know what this crate is you probably want to use
8//! `wasmtime`, not this crate.
9
10#![deny(missing_docs)]
11#![warn(clippy::cast_sign_loss)]
12#![no_std]
13
14#[cfg(feature = "std")]
15#[macro_use]
16extern crate std;
17extern crate alloc;
18
19pub mod prelude;
20
21mod address_map;
22mod frame_table;
23#[macro_use]
24mod builtin;
25mod demangling;
26mod error;
27mod ext;
28mod gc;
29mod hostcall;
30mod key;
31mod module;
32mod module_artifacts;
33mod module_types;
34pub mod obj;
35mod ref_bits;
36mod scopevec;
37mod stack_map;
38mod stack_switching;
39mod trap_encoding;
40mod tunables;
41mod types;
42mod vmoffsets;
43
44pub use self::ext::*;
45pub use crate::address_map::*;
46pub use crate::builtin::*;
47pub use crate::demangling::*;
48pub use crate::error::*;
49pub use crate::frame_table::*;
50pub use crate::gc::*;
51pub use crate::hostcall::*;
52pub use crate::key::*;
53pub use crate::module::*;
54pub use crate::module_artifacts::*;
55pub use crate::module_types::*;
56pub use crate::ref_bits::*;
57pub use crate::scopevec::ScopeVec;
58pub use crate::stack_map::*;
59pub use crate::stack_switching::*;
60pub use crate::trap_encoding::*;
61pub use crate::tunables::*;
62pub use crate::types::*;
63pub use crate::vmoffsets::*;
64pub use object;
65
66pub use wasmparser;
67
68#[cfg(feature = "compile")]
69mod compile;
70#[cfg(feature = "compile")]
71pub use crate::compile::*;
72
73#[cfg(feature = "component-model")]
74pub mod component;
75#[cfg(all(feature = "component-model", feature = "compile"))]
76pub mod fact;
77
78// Reexport all of these type-level since they're quite commonly used and it's
79// much easier to refer to everything through one crate rather than importing
80// one of three and making sure you're using the right one.
81pub use cranelift_entity::*;
82
83/// Version number of this crate.
84pub const VERSION: &str = env!("CARGO_PKG_VERSION");