Begin sketching out a new high-level fs API. (#91)

* Begin sketching out a new high-level `fs` API.

This is a very preliminary sketch of #83. It doesn't even compile yet,
but it shows a possible high-level structure of such an API.

* Stub out more functionality.

* Switch from a lazy_static WasiCtx to a borrowed one.

* Reformat some comments.

* Code-quote `Self`.

* Implement error translation for Windows.

* Calls to `fd_close` are now unsafe.

* Implement a few more functions.
This commit is contained in:
Dan Gohman
2019-09-30 11:27:53 -07:00
committed by GitHub
parent a679412dd0
commit 6b2f3ebf7c
12 changed files with 1058 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ mod hostcalls_impl;
mod sys;
#[macro_use]
mod macros;
pub mod fs;
mod host;
pub mod hostcalls;
mod memory;