Mention Wasmtime as a complete implementation of the Environment traits.
This commit is contained in:
@@ -21,7 +21,7 @@ implements a toy language.
|
|||||||
[SimpleJIT Demo]: https://github.com/CraneStation/simplejit-demo
|
[SimpleJIT Demo]: https://github.com/CraneStation/simplejit-demo
|
||||||
|
|
||||||
For an example of how to use Cranelift to run WebAssembly code, see
|
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
|
[Wasmtime]: https://github.com/CraneStation/wasmtime
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
//! "Dummy" implementations of `ModuleEnvironment` and `FuncEnvironment` for testing
|
//! "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 cast;
|
||||||
use cranelift_codegen::cursor::FuncCursor;
|
use cranelift_codegen::cursor::FuncCursor;
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
//! All the runtime support necessary for the wasm to cranelift translation is formalized by the
|
//! All the runtime support necessary for the wasm to cranelift translation is formalized by the
|
||||||
//! traits `FunctionEnvironment` and `ModuleEnvironment`.
|
//! 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::cursor::FuncCursor;
|
||||||
use cranelift_codegen::ir::immediates::Offset32;
|
use cranelift_codegen::ir::immediates::Offset32;
|
||||||
use cranelift_codegen::ir::{self, InstBuilder};
|
use cranelift_codegen::ir::{self, InstBuilder};
|
||||||
|
|||||||
Reference in New Issue
Block a user