use tokio's File with a cap-std Dir

This commit is contained in:
Pat Hickey
2021-04-15 11:39:11 -07:00
parent 2ddf4c1da9
commit 33dbd4388c
3 changed files with 23 additions and 6 deletions

View File

@@ -1,14 +1,14 @@
mod dir;
mod file;
use std::cell::RefCell;
use std::path::Path;
use std::rc::Rc;
pub use wasi_cap_std_sync::{clocks_ctx, random_ctx, Dir};
use wasi_common::{Table, WasiCtx};
use wasi_common::{Error, Table, WasiCtx};
pub fn sched_ctx() -> Box<dyn wasi_common::WasiSched> {
use wasi_common::{
sched::{Duration, Poll, WasiSched},
Error,
};
use wasi_common::sched::{Duration, Poll, WasiSched};
struct AsyncSched;
#[wiggle::async_trait]