Begin porting yanix to WASI.
This isn't complete yet, but subsequent steps will depend on Rust libstd and libc bindings changes that are in flight.
This commit is contained in:
@@ -7,14 +7,17 @@
|
||||
//!
|
||||
//! [nix]: https://github.com/nix-rust/nix
|
||||
//! [wasi-common]: https://github.com/bytecodealliance/wasmtime/tree/main/crates/wasi-common
|
||||
#![cfg(unix)]
|
||||
#![cfg(any(unix, target_os = "wasi"))]
|
||||
|
||||
#[cfg(not(target_os = "wasi"))] // not implemented for WASI in yanix yet
|
||||
pub mod clock;
|
||||
pub mod dir;
|
||||
pub mod fcntl;
|
||||
pub mod file;
|
||||
pub mod filetime;
|
||||
#[cfg(not(target_os = "wasi"))] // not implemented for WASI in yanix yet
|
||||
pub mod poll;
|
||||
#[cfg(not(target_os = "wasi"))] // not supported in WASI yet
|
||||
pub mod socket;
|
||||
|
||||
mod sys;
|
||||
|
||||
Reference in New Issue
Block a user