windows bs
This commit is contained in:
parent
9ce292f450
commit
de5b8b9ef2
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,11 @@
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
pub mod linux;
|
pub mod linux;
|
||||||
//#[cfg(target_os = "windows")]
|
#[cfg(target_os = "windows")]
|
||||||
pub mod win;
|
pub mod win;
|
||||||
|
|
||||||
pub fn run(name: String, executable: Vec<u8>) { todo!() }
|
pub fn run(name: String, executable: Vec<u8>, stdin: Vec<u8>) -> std::io::Result<()> {
|
||||||
|
#[cfg(target_os = "linux")]
|
||||||
|
return linux::run(name, executable, stdin);
|
||||||
|
#[cfg(target_os = "windows")]
|
||||||
|
return win::run(name, executable, stdin);
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue