wasmer_engine_object_file/
lib.rs

1//! Object file backend for Wasmer compilers.
2//!
3//! Given a compiler (such as `CraneliftCompiler` or `LLVMCompiler`)
4//! it generates a object file (.o file) and metadata which can be used
5//! to access it from other programming languages static.
6
7#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
8#![warn(unused_import_braces)]
9#![cfg_attr(feature = "cargo-clippy", allow(clippy::new_without_default))]
10#![cfg_attr(
11    feature = "cargo-clippy",
12    warn(
13        clippy::float_arithmetic,
14        clippy::mut_mut,
15        clippy::nonminimal_bool,
16        clippy::option_map_unwrap_or,
17        clippy::option_map_unwrap_or_else,
18        clippy::print_stdout,
19        clippy::unicode_not_nfc,
20        clippy::use_self
21    )
22)]
23
24mod artifact;
25mod builder;
26mod engine;
27mod serialize;
28
29pub use crate::artifact::ObjectFileArtifact;
30pub use crate::builder::ObjectFile;
31pub use crate::engine::ObjectFileEngine;
32
33/// Version number of this crate.
34pub const VERSION: &str = env!("CARGO_PKG_VERSION");