wasi_common::sync::snapshots::preview_1

Function add_wasi_snapshot_preview1_to_linker

Source
pub fn add_wasi_snapshot_preview1_to_linker<T, U>(
    linker: &mut Linker<T>,
    get_cx: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
) -> Result<()>
Available on crate feature sync only.
Expand description

Adds all instance items to the specified Linker.