rewrite wasi-tokio as just an task::block_in_place wrapper on cap-std-sync
This commit is contained in:
@@ -106,7 +106,7 @@ impl From<&str> for ReadPipe<io::Cursor<String>> {
|
||||
}
|
||||
|
||||
#[wiggle::async_trait]
|
||||
impl<R: Read + Any> WasiFile for ReadPipe<R> {
|
||||
impl<R: Read + Any + Send + Sync> WasiFile for ReadPipe<R> {
|
||||
fn as_any(&self) -> &dyn Any {
|
||||
self
|
||||
}
|
||||
@@ -265,7 +265,7 @@ impl WritePipe<io::Cursor<Vec<u8>>> {
|
||||
}
|
||||
|
||||
#[wiggle::async_trait]
|
||||
impl<W: Write + Any> WasiFile for WritePipe<W> {
|
||||
impl<W: Write + Any + Send + Sync> WasiFile for WritePipe<W> {
|
||||
fn as_any(&self) -> &dyn Any {
|
||||
self
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user