(
linker: &mut wasmtime_linker_t,
)
| 110 | #[cfg(feature = "wasi")] |
| 111 | #[unsafe(no_mangle)] |
| 112 | pub extern "C" fn wasmtime_linker_define_wasi( |
| 113 | linker: &mut wasmtime_linker_t, |
| 114 | ) -> Option<Box<wasmtime_error_t>> { |
| 115 | handle_result( |
| 116 | wasmtime_wasi::p1::add_to_linker_sync(&mut linker.linker, |ctx| { |
| 117 | ctx.wasi.as_mut().expect("wasi context must be populated") |
| 118 | }), |
| 119 | |_linker| (), |
| 120 | ) |
| 121 | } |
| 122 | |
| 123 | #[unsafe(no_mangle)] |
| 124 | pub unsafe extern "C" fn wasmtime_linker_define_instance( |
no test coverage detected