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;
22#[macro_use]
23mod builtin;
24mod demangling;
25mod error;
26mod ext;
27mod gc;
28mod hostcall;
29mod key;
30mod module;
31mod module_artifacts;
32mod module_types;
33pub mod obj;
34mod ref_bits;
35mod scopevec;
36mod stack_map;
37mod stack_switching;
38mod trap_encoding;
39mod tunables;
40mod types;
41mod vmoffsets;
42
43pub use self::ext::*;
44pub use crate::address_map::*;
45pub use crate::builtin::*;
46pub use crate::demangling::*;
47pub use crate::error::*;
48pub use crate::gc::*;
49pub use crate::hostcall::*;
50pub use crate::key::*;
51pub use crate::module::*;
52pub use crate::module_artifacts::*;
53pub use crate::module_types::*;
54pub use crate::ref_bits::*;
55pub use crate::scopevec::ScopeVec;
56pub use crate::stack_map::*;
57pub use crate::stack_switching::*;
58pub use crate::trap_encoding::*;
59pub use crate::tunables::*;
60pub use crate::types::*;
61pub use crate::vmoffsets::*;
62pub use object;
63
64pub use wasmparser;
65
66#[cfg(feature = "compile")]
67mod compile;
68#[cfg(feature = "compile")]
69pub use crate::compile::*;
70
71#[cfg(feature = "component-model")]
72pub mod component;
73#[cfg(all(feature = "component-model", feature = "compile"))]
74pub mod fact;
75
76// Reexport all of these type-level since they're quite commonly used and it's
77// much easier to refer to everything through one crate rather than importing
78// one of three and making sure you're using the right one.
79pub use cranelift_entity::*;
80
81/// Version number of this crate.
82pub const VERSION: &str = env!("CARGO_PKG_VERSION");