wasmer_engine_native/
lib.rs

1//! Native backend for Wasmer compilers.
2//!
3//! Given a compiler (such as `CraneliftCompiler` or `LLVMCompiler`)
4//! it generates a shared object file (`.so` or `.dylib` depending on
5//! the target), saves it temporarily to disk and uses it natively
6//! via `dlopen` and `dlsym` (using the `libloading` library).
7
8#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
9#![warn(unused_import_braces)]
10#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
11#![cfg_attr(
12    feature = "cargo-clippy",
13    warn(
14        clippy::float_arithmetic,
15        clippy::mut_mut,
16        clippy::nonminimal_bool,
17        clippy::option_map_unwrap_or,
18        clippy::option_map_unwrap_or_else,
19        clippy::print_stdout,
20        clippy::unicode_not_nfc,
21        clippy::use_self
22    )
23)]
24
25mod artifact;
26mod builder;
27mod engine;
28mod serialize;
29
30pub use crate::artifact::NativeArtifact;
31pub use crate::builder::Native;
32pub use crate::engine::NativeEngine;
33
34/// Version number of this crate.
35pub const VERSION: &str = env!("CARGO_PKG_VERSION");