wasmer_engine_universal/
lib.rs

1//! Universal backend for Wasmer compilers.
2//!
3//! Given a compiler (such as `CraneliftCompiler` or `LLVMCompiler`)
4//! it generates the compiled machine code, and publishes it into
5//! memory so it can be used externally.
6
7#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
8#![warn(unused_import_braces)]
9#![warn(unsafe_op_in_unsafe_fn)]
10#![cfg_attr(
11    feature = "cargo-clippy",
12    allow(clippy::new_without_default, clippy::new_without_default)
13)]
14#![cfg_attr(
15    feature = "cargo-clippy",
16    warn(
17        clippy::float_arithmetic,
18        clippy::mut_mut,
19        clippy::nonminimal_bool,
20        clippy::option_map_unwrap_or,
21        clippy::option_map_unwrap_or_else,
22        clippy::print_stdout,
23        clippy::unicode_not_nfc,
24        clippy::use_self
25    )
26)]
27
28mod artifact;
29mod builder;
30mod code_memory;
31mod engine;
32mod executable;
33mod link;
34mod unwind;
35
36pub use crate::artifact::UniversalArtifact;
37pub use crate::builder::Universal;
38pub use crate::code_memory::CodeMemory;
39pub use crate::engine::UniversalEngine;
40pub use crate::executable::{UniversalExecutable, UniversalExecutableRef};
41pub use crate::link::link_module;
42
43/// Version number of this crate.
44pub const VERSION: &str = env!("CARGO_PKG_VERSION");