move ctx into wiggle-tests crate

This commit is contained in:
Pat Hickey
2020-02-21 13:58:28 -08:00
parent 2feab2ee2b
commit f77000ad8f
4 changed files with 37 additions and 42 deletions

View File

@@ -3,16 +3,13 @@ use std::convert::TryFrom;
use wiggle_runtime::{
GuestArray, GuestError, GuestPtr, GuestPtrMut, GuestRef, GuestRefMut, GuestString,
};
use wiggle_test::{HostMemory, MemArea};
use wiggle_test::{impl_errno, HostMemory, MemArea, WasiCtx};
wiggle_generate::from_witx!({
witx: ["tests/test.witx"],
ctx: WasiCtx,
});
mod ctx;
use ctx::WasiCtx;
impl_errno!(types::Errno);
impl foo::Foo for WasiCtx {