Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async only support linux? #87

Open
ActivePeter opened this issue Nov 13, 2023 · 1 comment
Open

async only support linux? #87

ActivePeter opened this issue Nov 13, 2023 · 1 comment

Comments

@ActivePeter
Copy link

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
        }
    }
@L-jasmine
Copy link
Collaborator

Yes, async should be able to support both Windows and macOS. However, async-wasi only supports Linux. This is because many concepts in WASI are difficult to implement on Windows, so it is only supported on Linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants