Mention Wasmtime as a complete implementation of the Environment traits.

This commit is contained in:
Dan Gohman
2018-12-20 15:02:10 -08:00
parent 95118e7244
commit 998a7d2b6d
3 changed files with 12 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ implements a toy language.
[SimpleJIT Demo]: https://github.com/CraneStation/simplejit-demo
For an example of how to use Cranelift to run WebAssembly code, see
[Wasmtime], which implements a standalone VM using Cranelift.
[Wasmtime], which implements a standalone, embeddable, VM using Cranelift.
[Wasmtime]: https://github.com/CraneStation/wasmtime

View File

@@ -1,5 +1,9 @@
//! "Dummy" implementations of `ModuleEnvironment` and `FuncEnvironment` for testing
//! wasm translation.
//! wasm translation. For complete implementations of `ModuleEnvironment` and
//! `FuncEnvironment`, see [wasmtime-environ] in [Wasmtime].
//!
//! [wasmtime-environ]: https://crates.io/crates/wasmtime-environ
//! [Wasmtime]: https://github.com/CraneStation/wasmtime
use cast;
use cranelift_codegen::cursor::FuncCursor;

View File

@@ -1,5 +1,11 @@
//! All the runtime support necessary for the wasm to cranelift translation is formalized by the
//! traits `FunctionEnvironment` and `ModuleEnvironment`.
//!
//! There are skeleton implementations of these traits in the `dummy` module, and complete
//! implementations in [Wasmtime].
//!
//! [Wasmtime]: https://github.com/CraneStation/wasmtime
use cranelift_codegen::cursor::FuncCursor;
use cranelift_codegen::ir::immediates::Offset32;
use cranelift_codegen::ir::{self, InstBuilder};