File tree 4 files changed +10
-10
lines changed
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -105,8 +105,6 @@ pub mod prelude {
105
105
/// WebAssembly binary code. This function is useful if it
106
106
/// is necessary to a compile a module before it can be instantiated
107
107
/// and must be used if you wish to use a different backend from the default.
108
- ///
109
- /// [`Module`]: struct.Module.html
110
108
pub fn compile_with (
111
109
wasm : & [ u8 ] ,
112
110
compiler : & dyn backend:: Compiler ,
Original file line number Diff line number Diff line change @@ -101,11 +101,9 @@ impl ModuleInfo {
101
101
102
102
/// A compiled WebAssembly module.
103
103
///
104
- /// `Module` is returned by the [`compile`] and
105
- /// [`compile_with`] functions.
104
+ /// `Module` is returned by the [`compile_with`][] function.
106
105
///
107
- /// [`compile`]: fn.compile.html
108
- /// [`compile_with`]: fn.compile_with.html
106
+ /// [`compile_with`]: crate::compile_with
109
107
pub struct Module {
110
108
inner : Arc < ModuleInner > ,
111
109
}
Original file line number Diff line number Diff line change 79
79
//! # Additional Notes:
80
80
//!
81
81
//! The `wasmer-runtime` is build to support compiler multiple backends.
82
- //! Currently, we support the [Cranelift] compiler with the [`wasmer-clif-backend`] crate.
82
+ //! Currently, we support the Singlepass, [Cranelift], and LLVM compilers
83
+ //! with the [`wasmer-singlepass-backend`], [`wasmer-clif-backend`], and
84
+ //! wasmer-llvm-backend crates, respectively.
83
85
//!
84
- //! You can specify the compiler you wish to use with the [`compile_with`] function.
86
+ //! You can specify the compiler you wish to use with the [`compile_with`]
87
+ //! function or use the default with the [`compile`] function.
85
88
//!
86
89
//! [Cranelift]: https://github.com/CraneStation/cranelift
90
+ //! [LLVM]: https://llvm.org
91
+ //! [`wasmer-singlepass-backend`]: https://crates.io/crates/wasmer-singlepass-backend
87
92
//! [`wasmer-clif-backend`]: https://crates.io/crates/wasmer-clif-backend
88
- //! [`compile_with`]: fn.compile_with.html
89
93
90
94
pub use wasmer_runtime_core:: backend:: { Backend , Features } ;
91
95
pub use wasmer_runtime_core:: codegen:: { MiddlewareChain , StreamingCompiler } ;
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ pub fn generate_import_object(
81
81
}
82
82
83
83
/// Create an [`ImportObject`] with an existing [`WasiState`]. [`WasiState`]
84
- /// can be constructed from a [`WasiStateBuilder`].
84
+ /// can be constructed from a [`WasiStateBuilder`](state::WasiStateBuilder) .
85
85
pub fn generate_import_object_from_state (
86
86
wasi_state : WasiState ,
87
87
version : WasiVersion ,
You can’t perform that action at this time.
0 commit comments