diff --git a/cranelift/README.md b/cranelift/README.md index 800dc6cc02..82ac7912dd 100644 --- a/cranelift/README.md +++ b/cranelift/README.md @@ -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 diff --git a/lib/wasm/src/environ/dummy.rs b/lib/wasm/src/environ/dummy.rs index a31a750b56..fc7db3af38 100644 --- a/lib/wasm/src/environ/dummy.rs +++ b/lib/wasm/src/environ/dummy.rs @@ -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; diff --git a/lib/wasm/src/environ/spec.rs b/lib/wasm/src/environ/spec.rs index 7aeeb43c92..9f3c2ba165 100644 --- a/lib/wasm/src/environ/spec.rs +++ b/lib/wasm/src/environ/spec.rs @@ -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};