mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-10 14:48:27 +00:00
55 lines
1.5 KiB
Rust
55 lines
1.5 KiB
Rust
//! JIT backend for Wasmer compilers.
|
|
//!
|
|
//! Given a compiler (such as `CraneliftCompiler` or `LLVMCompiler`)
|
|
//! it generates the compiled machine code, and publishes it into
|
|
//! memory so it can be used externally.
|
|
|
|
#![deny(missing_docs, trivial_numeric_casts, unused_extern_crates)]
|
|
#![warn(unused_import_braces)]
|
|
#![cfg_attr(feature = "clippy", plugin(clippy(conf_file = "../../clippy.toml")))]
|
|
#![cfg_attr(
|
|
feature = "cargo-clippy",
|
|
allow(clippy::new_without_default, clippy::new_without_default)
|
|
)]
|
|
#![cfg_attr(
|
|
feature = "cargo-clippy",
|
|
warn(
|
|
clippy::float_arithmetic,
|
|
clippy::mut_mut,
|
|
clippy::nonminimal_bool,
|
|
clippy::option_map_unwrap_or,
|
|
clippy::option_map_unwrap_or_else,
|
|
clippy::print_stdout,
|
|
clippy::unicode_not_nfc,
|
|
clippy::use_self
|
|
)
|
|
)]
|
|
|
|
mod code_memory;
|
|
mod engine;
|
|
mod error;
|
|
mod function_table;
|
|
mod instantiate;
|
|
mod link;
|
|
mod resolver;
|
|
mod serialize;
|
|
mod trap;
|
|
mod tunables;
|
|
|
|
pub use crate::code_memory::CodeMemory;
|
|
pub use crate::engine::JITEngine;
|
|
pub use crate::error::{
|
|
DeserializeError, ImportError, InstantiationError, LinkError, SerializeError,
|
|
};
|
|
pub use crate::function_table::FunctionTable;
|
|
pub use crate::instantiate::CompiledModule;
|
|
pub use crate::link::link_module;
|
|
pub use crate::resolver::{resolve_imports, NullResolver, Resolver};
|
|
pub use crate::trap::*;
|
|
pub use crate::tunables::Tunables;
|
|
|
|
pub use wasmer_compiler::CompilerConfig;
|
|
|
|
/// Version number of this crate.
|
|
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
|