windows bs

This commit is contained in:
davidontop 2024-08-08 10:50:50 +02:00
parent 9ce292f450
commit de5b8b9ef2
Signed by: DavidOnTop
GPG key ID: 5D05538A45D5149F

View file

@ -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);
}