mirror of
https://github.com/XAMPPRocky/tokei
synced 2024-08-28 11:50:31 +00:00
Increased stack size for builds
This commit is contained in:
parent
62853f7840
commit
87a7b44af5
|
@ -9,13 +9,22 @@ fn main() {
|
|||
fn expand() {
|
||||
use std::env;
|
||||
use std::path::Path;
|
||||
use std::thread;
|
||||
|
||||
let out_dir = env::var_os("OUT_DIR").unwrap();
|
||||
let builder = thread::Builder::new()
|
||||
.name(String::from("Build Thread"))
|
||||
.stack_size(8388608);
|
||||
|
||||
let src = Path::new("src/lib/lib.rs.in");
|
||||
let dst = Path::new(&out_dir).join("lib.rs.in");
|
||||
let handle = builder.spawn(|| {
|
||||
let out_dir = env::var_os("OUT_DIR").unwrap();
|
||||
|
||||
serde_codegen::expand(&src, &dst).unwrap();
|
||||
let src = Path::new("src/lib/lib.rs.in");
|
||||
let dst = Path::new(&out_dir).join("lib.rs.in");
|
||||
|
||||
serde_codegen::expand(&src, &dst).unwrap();
|
||||
});
|
||||
|
||||
let _ = handle.unwrap().join();
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "io"))]
|
||||
|
|
Loading…
Reference in a new issue