mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-25 20:31:02 +00:00
49 lines
1.3 KiB
Rust
49 lines
1.3 KiB
Rust
/*#![deny(
|
|
dead_code,
|
|
nonstandard_style,
|
|
unused_imports,
|
|
unused_mut,
|
|
unused_variables,
|
|
unused_unsafe,
|
|
unreachable_patterns
|
|
)]*/
|
|
#![feature(proc_macro_hygiene)]
|
|
#![doc(html_favicon_url = "https://wasmer.io/static/icons/favicon.ico")]
|
|
#![doc(html_logo_url = "https://avatars3.githubusercontent.com/u/44205449?s=200&v=4")]
|
|
|
|
#[cfg(not(any(
|
|
all(target_os = "macos", target_arch = "x86_64"),
|
|
all(target_os = "linux", target_arch = "x86_64"),
|
|
all(target_os = "linux", target_arch = "aarch64"),
|
|
)))]
|
|
compile_error!("This crate doesn't yet support compiling on operating systems other than linux and macos and architectures other than x86_64");
|
|
|
|
extern crate dynasmrt;
|
|
|
|
#[macro_use]
|
|
extern crate dynasm;
|
|
|
|
#[macro_use]
|
|
extern crate lazy_static;
|
|
|
|
extern crate byteorder;
|
|
#[macro_use]
|
|
extern crate smallvec;
|
|
|
|
mod codegen_x64;
|
|
mod emitter_x64;
|
|
mod machine;
|
|
pub mod protect_unix;
|
|
mod translator_aarch64;
|
|
|
|
pub use codegen_x64::X64FunctionCode as FunctionCodeGenerator;
|
|
pub use codegen_x64::X64ModuleCodeGenerator as ModuleCodeGenerator;
|
|
|
|
use wasmer_runtime_core::codegen::SimpleStreamingCompilerGen;
|
|
pub type SinglePassCompiler = SimpleStreamingCompilerGen<
|
|
codegen_x64::X64ModuleCodeGenerator,
|
|
codegen_x64::X64FunctionCode,
|
|
codegen_x64::X64ExecutionContext,
|
|
codegen_x64::CodegenError,
|
|
>;
|