mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-18 06:19:12 +00:00
* Basic changes for RISC-V support * RISC-V in compiler LLVM * RISC-V support in dylib engine * RISC-V support in universal engine * Various small fixes * [RISCV] LLVM-riscv working, with some ignored tests to be worked on later * Update rustc to 4.65 (1.64 has some issue with riscv64 target) * Fixed some (new) Linting issues * Updated Cargo.toml and remove split-debuginfo for Windows build * Removed profile.dev from Cargo.toml as it cannot be per platform (breaks Windows). split-debug info is now the default value * Enable Cranelift compiler for RISCV * Update crates and fixed all the new clippy errors * Taken review remarks into account * Removed change from deny.toml, it's not needed anymore * Added some more comment about llvm abi hack * Added doc about current state of RISCV support * Fixed (newer) linter --------- Co-authored-by: Toru Nayuki <tnayuki@icloud.com>
wasmer-compiler-cranelift

This crate contains a compiler implementation based on Cranelift.
Usage
use wasmer::{Store, EngineBuilder};
use wasmer_compiler_cranelift::Cranelift;
let compiler = Cranelift::new();
let mut store = Store::new(compiler);
Note: you can find a full working example using Cranelift compiler here.
When to use Cranelift
We recommend using this compiler crate only for development
proposes. For production we recommend using wasmer-compiler-llvm
as it offers a much better runtime speed (50% faster on average).
Acknowledgments
This project borrowed some of the function lowering from
cranelift-wasm.
Please check Wasmer ATTRIBUTIONS to further see licenses and other
attributions of the project.