21 releases (9 stable)

2.3.0 Jun 6, 2022
2.2.1 Mar 16, 2022
2.2.0 Feb 28, 2022
2.1.1 Dec 21, 2021
1.0.0-alpha5 Nov 6, 2020

#18 in #wasm-engine

Download history 8330/week @ 2024-01-23 9461/week @ 2024-01-30 10030/week @ 2024-02-06 10423/week @ 2024-02-13 8576/week @ 2024-02-20 8818/week @ 2024-02-27 9805/week @ 2024-03-05 10980/week @ 2024-03-12 9950/week @ 2024-03-19 9281/week @ 2024-03-26 7871/week @ 2024-04-02 7171/week @ 2024-04-09 9684/week @ 2024-04-16 7788/week @ 2024-04-23 7534/week @ 2024-04-30 7648/week @ 2024-05-07

34,594 downloads per month
Used in 95 crates (9 directly)

MIT OR Apache-2.0 WITH LLVM-exception

610KB
13K SLoC

wasmer-engine Build Status Join Wasmer Slack MIT License

This crate is the general abstraction for creating Engines in Wasmer.

Wasmer Engines are mainly responsible for two things:

  • Transform the compilation code (from any Wasmer Compiler) to create an Artifact,
  • Load anArtifact so it can be used by the user (normally, pushing the code into executable memory and so on).

It currently has three implementations:

  1. Universal with wasmer-engine-universal,
  2. Native with wasmer-engine-dylib,
  3. Object with wasmer-engine-staticlib.

Example Implementation

Please check wasmer-engine-dummy for an example implementation for an Engine.

Acknowledgments

This project borrowed some of the code of the trap implementation from the wasmtime-api, the code since then has evolved significantly.

Please check Wasmer ATTRIBUTIONS to further see licenses and other attributions of the project.

Dependencies

~5–14MB
~174K SLoC