wasmedge-rust-sdk
wasmedge-rust-sdk copied to clipboard
async only support linux?
pub fn wasi_enabled(&self) -> bool {
#[cfg(not(feature = "async"))]
unsafe {
ffi::WasmEdge_ConfigureHasHostRegistration(
self.inner.0,
ffi::WasmEdge_HostRegistration_Wasi,
)
}
#[cfg(all(feature = "async", target_os = "linux"))]
{
self.async_wasi_enabled
}
}