14 releases (4 stable)

2.0.0 Jun 16, 2021
1.0.2 Feb 5, 2021
1.0.0-rc1 Dec 23, 2020
1.0.0-alpha5 Nov 6, 2020

#366 in WebAssembly

Download history 2191/week @ 2021-04-03 2374/week @ 2021-04-10 4431/week @ 2021-04-17 3431/week @ 2021-04-24 3416/week @ 2021-05-01 3080/week @ 2021-05-08 2813/week @ 2021-05-15 2594/week @ 2021-05-22 2427/week @ 2021-05-29 2210/week @ 2021-06-05 3104/week @ 2021-06-12 4148/week @ 2021-06-19 3635/week @ 2021-06-26 3890/week @ 2021-07-03 4778/week @ 2021-07-10 3026/week @ 2021-07-17

11,694 downloads per month
Used in 55 crates (12 directly)

MIT OR Apache-2.0 WITH LLVM-exception

595KB
12K 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

~6MB
~126K SLoC