(zilch lang rust): initial commit
This commit is contained in:
parent
d52a1e7796
commit
5380ac9307
12 changed files with 1392 additions and 3 deletions
10
lang/rust/buildrs-runner.rs
Normal file
10
lang/rust/buildrs-runner.rs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
use std::{env::var_os, fs::{create_dir, File}, os::unix::process::CommandExt, process::Command};
|
||||
|
||||
fn main() {
|
||||
create_dir(var_os("OUT_DIR").unwrap()).unwrap();
|
||||
Err(Command::new(var_os("script").unwrap())
|
||||
.stdout(File::create(var_os("out").unwrap()).unwrap())
|
||||
.current_dir(var_os("cwd").unwrap())
|
||||
.exec())
|
||||
.unwrap()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue