wasmer_engine_dylib/
lib.rs

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