Skip to content

Commit 63a9517

Browse files
committed
doc: add a link to p3 add_to_linker
Signed-off-by: Roman Volosatovs <[email protected]>
1 parent ae81493 commit 63a9517

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

crates/wasi/src/p3/clocks/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ use wasmtime::component::{HasData, Linker};
1010
/// [`Linker`], which corresponds to the `wasi:clocks/imports` world supported by
1111
/// this module.
1212
///
13+
/// This is low-level API for advanced use cases,
14+
/// [`wasmtime_wasi::p3::add_to_linker`](crate::p3::add_to_linker) can be used instead
15+
/// to add *all* wasip3 interfaces (including the ones from this module) to the `linker`.
16+
///
1317
/// # Example
1418
///
1519
/// ```

crates/wasi/src/p3/random/mod.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@ use wasmtime::component::{HasData, Linker};
66

77
/// Add all WASI interfaces from this module into the `linker` provided.
88
///
9-
/// This function will add the `async` variant of all interfaces into the
10-
/// [`Linker`] provided. By `async` this means that this function is only
11-
/// compatible with [`Config::async_support(true)`][async]. For embeddings with
12-
/// async support disabled see [`add_to_linker_sync`] instead.
13-
///
14-
/// This function will add all interfaces implemented by this crate to the
9+
/// This function will add all interfaces implemented by this module to the
1510
/// [`Linker`], which corresponds to the `wasi:random/imports` world supported by
1611
/// this crate.
1712
///
18-
/// [async]: wasmtime::Config::async_support
13+
/// This is low-level API for advanced use cases,
14+
/// [`wasmtime_wasi::p3::add_to_linker`](crate::p3::add_to_linker) can be used instead
15+
/// to add *all* wasip3 interfaces (including the ones from this module) to the `linker`.
16+
///
1917
///
2018
/// # Example
2119
///

0 commit comments

Comments
 (0)