wasmer_engine_staticlib/
lib.rs

1//! Staticlib engine for Wasmer compilers.
2//!
3//! Given a compiler (such as `CraneliftCompiler` or `LLVMCompiler`)
4//! it generates a static object file (`.o` file) and metadata which
5//! can be used 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::map_unwrap_or,
17        clippy::print_stdout,
18        clippy::unicode_not_nfc,
19        clippy::use_self
20    )
21)]
22
23mod artifact;
24mod builder;
25mod engine;
26mod serialize;
27
28pub use crate::artifact::StaticlibArtifact;
29pub use crate::builder::Staticlib;
30pub use crate::engine::StaticlibEngine;
31
32/// Version number of this crate.
33pub const VERSION: &str = env!("CARGO_PKG_VERSION");