lucet_runtime_internals/lib.rs
1//! `lucet-runtime` is a library for loading, running, and monitoring ahead-of-time compiled
2//! WebAssembly modules in lightweight sandboxes. It is intended to work with modules compiled by
3//! [`lucetc`](https://github.com/fastly/lucet/tree/master/lucetc).
4
5#![deny(bare_trait_objects)]
6
7#[macro_use]
8pub mod error;
9#[macro_use]
10pub mod hostcall_macros;
11pub use lucet_runtime_macros::lucet_hostcall;
12
13#[macro_use]
14#[cfg(test)]
15pub mod test_helpers;
16
17pub mod alloc;
18pub mod c_api;
19pub mod context;
20pub mod embed_ctx;
21pub mod instance;
22pub mod module;
23pub mod region;
24pub mod sysdeps;
25pub mod val;
26pub mod vmctx;
27
28/// The size of a page in WebAssembly heaps.
29pub const WASM_PAGE_SIZE: u32 = 64 * 1024;