Skip to content

A minimal in-place WebAssembly interpreter, written in Rust, almost without use of external dependencies

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

DLR-FT/wasm-interpreter

Repository files navigation

wasm-interpreter

Website  •  Features  •  Resources

ci status code coverage license license

A minimal in-place interpreter for WebAssembly bytecode (almost without) dependencies while being no_std.

Features

  • In-place interpretation: No intermediate parsing step. This allows for fast start-up times.
  • no_std support: The interpreter requires only Rust's core and alloc libraries allowing its use in various environments, such as bare-metal systems.
  • Minimal dependencies: The interpreter requires only two dependencies: log, libm.
  • Compliance with specification: The interpreter passes almost all test from the official WebAssembly testsuite. Only SIMD instructions are missing.
  • Host functions: The host system can provide functions for Wasm code to call.

For information on other features, visit our requirements page.

Planned

  • Fuel & resumable execution: A fuel mechanism is used to halt execution once fuel runs out. Then fuel can be refilled and execution resumed.
  • C bindings: The interpreter can be used from C code.
  • Migratability: Wasm instances can be transferred between systems during their execution.
  • Threading: There are multiple threading proposals, but we have not yet chosen a specific one. Some options are shared-everything-threads, threads, wasi-threads.

Not planned

Multi-memory proposal, GC proposal

Resources

License

Licensed under either of

at your option.

Contribution

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.

Copyright

Copyright © 2024-2025 Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
Copyright © 2024-2025 OxidOS Automotive SRL

About

A minimal in-place WebAssembly interpreter, written in Rust, almost without use of external dependencies

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Contributors 9

Languages