mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-18 15:02:13 +00:00
This non-publishable new crate contains a test suite for the `wasmer-runtime-core` crate. So far, the test suite is rather small, but it aims to be extended in a close future.
22 lines
540 B
Rust
22 lines
540 B
Rust
pub use wabt::wat2wasm;
|
|
use wasmer_runtime_core::backend::Compiler;
|
|
|
|
#[cfg(feature = "backend-cranelift")]
|
|
pub fn get_compiler() -> impl Compiler {
|
|
use wasmer_clif_backend::CraneliftCompiler;
|
|
|
|
CraneliftCompiler::new()
|
|
}
|
|
|
|
#[cfg(feature = "backend-singlepass")]
|
|
pub fn get_compiler() -> impl Compiler {
|
|
use wasmer_singlepass_backend::SinglePassCompiler;
|
|
SinglePassCompiler::new()
|
|
}
|
|
|
|
#[cfg(feature = "backend-llvm")]
|
|
pub fn get_compiler() -> impl Compiler {
|
|
use wasmer_llvm_backend::LLVMCompiler;
|
|
LLVMCompiler::new()
|
|
}
|