14 stable releases

2.4.0 May 30, 2022
2.3.0 Apr 21, 2022
2.2.3 May 30, 2022
2.2.0 Jan 25, 2022
1.0.1 Feb 5, 2021

#134 in WebAssembly

Download history 1147/week @ 2022-12-04 999/week @ 2022-12-11 818/week @ 2022-12-18 325/week @ 2022-12-25 421/week @ 2023-01-01 999/week @ 2023-01-08 1092/week @ 2023-01-15 1470/week @ 2023-01-22 1370/week @ 2023-01-29 1443/week @ 2023-02-05 1288/week @ 2023-02-12 1387/week @ 2023-02-19 969/week @ 2023-02-26 1184/week @ 2023-03-05 989/week @ 2023-03-12 1452/week @ 2023-03-19

4,613 downloads per month
Used in 12 crates (6 directly)

MIT OR Apache-2.0 WITH LLVM-exception

545KB
11K 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

~7MB
~146K SLoC