Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

WASM: Use wasmtime-embed to implement callable Rust functions in Wasmtime #16

Closed
mbestavros opened this issue Aug 28, 2019 · 1 comment · Fixed by #17
Closed

WASM: Use wasmtime-embed to implement callable Rust functions in Wasmtime #16

mbestavros opened this issue Aug 28, 2019 · 1 comment · Fixed by #17
Assignees

Comments

@mbestavros
Copy link
Contributor

mbestavros commented Aug 28, 2019

A longer-term WASM priority for Enarx is the ability to implement custom WASI functions in Wasmtime (as detailed in #10). There are a number of approaches to achieve that goal; this issue focuses on one particular way.

Yury from Mozilla has recently been working on tools to make Wasmtime embeddable. While they have a number of uses, one particularly interesting result from his work is the ability to write a native Rust function and have it included in the set of functions that Wasmtime imports, and have it usable by WASM binaries. We'd like to investigate this technique as a possibility to achieve custom WASI implementations.

@mbestavros mbestavros self-assigned this Aug 28, 2019
@steveej steveej self-assigned this Aug 30, 2019
@mbestavros mbestavros changed the title WASM: Run a Rust function on Wasmtime without pre-compilation WASM: Use wasmtime-embed to implement callable Rust functions in Wasmtime Aug 30, 2019
@steveej
Copy link
Contributor

steveej commented Sep 2, 2019

The description explains the use-case well now!

Nitpick: I think the old title would've been fine, as wasmtime-embed is an implementation detail and would fit better into a PR implementing the use-case.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants