-
Notifications
You must be signed in to change notification settings - Fork 8
Implement a basic Wasmtime demo #9
Implement a basic Wasmtime demo #9
Conversation
@mbestavros Don't forget that our policy is to squash into logical commits before submitting the PR. |
8ccaae4
to
6e5fa17
Compare
@npmccallum Right, apologies. Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
Run this code through
rustfmt
. A simplecargo fmt
should do. -
I think the abstractions (
handle_module()
and so on...) aren't holding their weight for this demo. I'd really like to see just the bare wasmtime API in a singlemain()
function. -
We probably need to turn on optimization before benchmarks. For clang:
-O3
. For rustc:-C opt-level=3
.
40ac56f
to
c4833f3
Compare
@npmccallum Addressed your points. Ready for re-review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Getting really close!
f065a46
to
d6c9cf5
Compare
d6c9cf5
to
26729d4
Compare
This PR implements a simple demo of Wasmtime and how Enarx may use it.
The demo builds a basic WASM binary from either Rust or C source (selectable at compile time via a Cargo feature), loads it into Wasmtime, and runs it.
This work resolves both #3 and #7. Further WASM demo work will likely build on top of this base.