Skip to content

Commit f5a367a

Browse files
committed
runc: split the trait from lib to async and sync
Signed-off-by: jokemanfire <hu.dingyang@zte.com.cn>
1 parent cea5523 commit f5a367a

File tree

5 files changed

+976
-919
lines changed

5 files changed

+976
-919
lines changed

crates/runc/src/asynchronous/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@
1515
*/
1616
pub mod io;
1717
mod pipe;
18+
mod runc;
1819
use std::{fmt::Debug, io::Result, os::fd::AsRawFd};
1920

2021
use async_trait::async_trait;
2122
use log::debug;
2223
pub use pipe::Pipe;
24+
pub use runc::{DefaultExecutor, Spawner};
2325
use tokio::io::{AsyncRead, AsyncWrite};
2426

2527
use crate::Command;

0 commit comments

Comments
 (0)