Crates.io | soroban-wasmi |
lib.rs | soroban-wasmi |
version | 0.36.1-soroban.22.0.0 |
source | src |
created_at | 2022-07-29 21:52:41.463167 |
updated_at | 2024-09-23 22:15:29.617871 |
description | Soroban fork of Parity WebAssembly interpreter |
homepage | |
repository | https://github.com/wasmi-labs/wasmi |
max_upload_size | |
id | 635208 |
size | 2,352,187 |
Continuous Integration | Test Coverage | Documentation | Crates.io |
---|---|---|---|
Wasmi is an efficient and lightweight WebAssembly interpreter with a focus on constrained and embedded systems.
Version 0.31.0
has been audited by SRLabs.
As of 2024-02-01, the original owner and maintainer of the Wasmi project, Parity Technologies, has officially transferred ownership of the project to me, Robin Freyler. Read more about this transfer here.
The following list states some of the distinct features of Wasmi.
Refer to the Wasmi usage guide to learn how properly to use Wasmi.
The new Wasmi engine supports a variety of WebAssembly proposals and will support even more of them in the future.
WebAssembly Proposal | Status | Comment |
---|---|---|
mutable-global |
✅ | Since version 0.14.0 . |
saturating-float-to-int |
✅ | Since version 0.14.0 . |
sign-extension |
✅ | Since version 0.14.0 . |
multi-value |
✅ | Since version 0.14.0 . |
bulk-memory |
✅ | Since version 0.24.0 . (#628) |
reference-types |
✅ | Since version 0.24.0 . (#635) |
simd |
❌ | Unlikely to be supported. |
tail-calls |
✅ | Since version 0.28.0 . (#683) |
extended-const |
✅ | Since version 0.29.0 . (#707) |
function-references |
📅 | Planned but not yet implemented. (#774) |
gc |
📅 | Planned but not yet implemented. (#775) |
multi-memory |
📅 | Planned but not yet implemented. (#776) |
threads |
📅 | Planned but not yet implemented. (#777) |
relaxed-simd |
❌ | Unlikely to be supported since simd is unlikely to be supported. |
component-model |
📅 | Planned but not yet implemented. (#897) |
exception-handling |
📅 | Planned but not yet implemented. (#1037) |
branch-hinting |
📅 | Planned but not yet implemented. (#1036) |
WASI | 👨🔬 | Experimental support for WASI (wasip1 ) via the wasmi_wasi crate. |
C-API | 👨🔬 | Experimental support for the official Wasm C-API via the wasmi_c_api_impl crate. |
Clone the Wasmi repository and build using cargo
:
git clone https://github.com/wasmi-labs/wasmi.git --recursive
cd wasmi
cargo build
cargo test
In order to benchmark Wasmi use the following command:
cargo bench
Use translate
, instantiate
, execute
or overhead
filters to only run benchmarks that test performance of Wasm translation, instantiation, execution or miscellaneous overhead respectively, e.g. cargo bench execute
.
We maintain a timeline for benchmarks of every commit to master
that can be viewed here.
Wasmi supports a wide variety of architectures and platforms.
no_std
embedded environments, thus not requiring the standard library (std
).Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.