wasmer_compiler_singlepass/
lib.rs

1//! A WebAssembly `Compiler` implementation using Singlepass.
2//!
3//! Singlepass is a super-fast assembly generator that generates
4//! assembly code in just one pass. This is useful for different applications
5//! including Blockchains and Edge computing where quick compilation
6//! times are a must, and JIT bombs should never happen.
7//!
8//! Compared to Cranelift and LLVM, Singlepass compiles much faster but has worse
9//! runtime performance.
10
11#![allow(clippy::unnecessary_cast)]
12#![cfg_attr(docsrs, feature(doc_cfg))]
13
14mod address_map;
15mod arm64_decl;
16mod codegen;
17mod common_decl;
18mod compiler;
19mod config;
20#[cfg(feature = "unwind")]
21mod dwarf;
22mod emitter_arm64;
23mod emitter_riscv;
24mod emitter_x64;
25mod location;
26mod machine;
27mod machine_arm64;
28mod machine_riscv;
29mod machine_x64;
30mod riscv_decl;
31mod unwind;
32#[cfg(feature = "unwind")]
33mod unwind_winx64;
34mod x64_decl;
35
36pub use crate::compiler::SinglepassCompiler;
37pub use {crate::config::Singlepass, crate::config::SinglepassCallbacks};