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

#95 in WebAssembly

Download history 26595/week @ 2022-12-02 31617/week @ 2022-12-09 26146/week @ 2022-12-16 11694/week @ 2022-12-23 15500/week @ 2022-12-30 22091/week @ 2023-01-06 16869/week @ 2023-01-13 17377/week @ 2023-01-20 19455/week @ 2023-01-27 25068/week @ 2023-02-03 24952/week @ 2023-02-10 25499/week @ 2023-02-17 20376/week @ 2023-02-24 26064/week @ 2023-03-03 25861/week @ 2023-03-10 18141/week @ 2023-03-17

94,907 downloads per month
Used in 132 crates (10 directly)

MIT OR Apache-2.0 WITH LLVM-exception

555KB
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

~6.5MB
~137K SLoC