mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-21 20:51:32 +00:00
Add misc doc link fixes and update old comment
This commit is contained in:
@ -105,8 +105,6 @@ pub mod prelude {
|
||||
/// WebAssembly binary code. This function is useful if it
|
||||
/// is necessary to a compile a module before it can be instantiated
|
||||
/// and must be used if you wish to use a different backend from the default.
|
||||
///
|
||||
/// [`Module`]: struct.Module.html
|
||||
pub fn compile_with(
|
||||
wasm: &[u8],
|
||||
compiler: &dyn backend::Compiler,
|
||||
|
@ -101,11 +101,9 @@ impl ModuleInfo {
|
||||
|
||||
/// A compiled WebAssembly module.
|
||||
///
|
||||
/// `Module` is returned by the [`compile`] and
|
||||
/// [`compile_with`] functions.
|
||||
/// `Module` is returned by the [`compile_with`][] function.
|
||||
///
|
||||
/// [`compile`]: fn.compile.html
|
||||
/// [`compile_with`]: fn.compile_with.html
|
||||
/// [`compile_with`]: crate::compile_with
|
||||
pub struct Module {
|
||||
inner: Arc<ModuleInner>,
|
||||
}
|
||||
|
@ -79,13 +79,17 @@
|
||||
//! # Additional Notes:
|
||||
//!
|
||||
//! The `wasmer-runtime` is build to support compiler multiple backends.
|
||||
//! Currently, we support the [Cranelift] compiler with the [`wasmer-clif-backend`] crate.
|
||||
//! Currently, we support the Singlepass, [Cranelift], and LLVM compilers
|
||||
//! with the [`wasmer-singlepass-backend`], [`wasmer-clif-backend`], and
|
||||
//! wasmer-llvm-backend crates, respectively.
|
||||
//!
|
||||
//! You can specify the compiler you wish to use with the [`compile_with`] function.
|
||||
//! You can specify the compiler you wish to use with the [`compile_with`]
|
||||
//! function or use the default with the [`compile`] function.
|
||||
//!
|
||||
//! [Cranelift]: https://github.com/CraneStation/cranelift
|
||||
//! [LLVM]: https://llvm.org
|
||||
//! [`wasmer-singlepass-backend`]: https://crates.io/crates/wasmer-singlepass-backend
|
||||
//! [`wasmer-clif-backend`]: https://crates.io/crates/wasmer-clif-backend
|
||||
//! [`compile_with`]: fn.compile_with.html
|
||||
|
||||
pub use wasmer_runtime_core::backend::{Backend, Features};
|
||||
pub use wasmer_runtime_core::codegen::{MiddlewareChain, StreamingCompiler};
|
||||
|
@ -81,7 +81,7 @@ pub fn generate_import_object(
|
||||
}
|
||||
|
||||
/// Create an [`ImportObject`] with an existing [`WasiState`]. [`WasiState`]
|
||||
/// can be constructed from a [`WasiStateBuilder`].
|
||||
/// can be constructed from a [`WasiStateBuilder`](state::WasiStateBuilder).
|
||||
pub fn generate_import_object_from_state(
|
||||
wasi_state: WasiState,
|
||||
version: WasiVersion,
|
||||
|
Reference in New Issue
Block a user