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:
Dan Gohman
2020-07-05 09:13:01 -07:00
committed by Jakub Konka
parent 25397d0c15
commit cf5289c553
9 changed files with 108 additions and 7 deletions

View File

@@ -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;