mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 05:58:01 +00:00
Switch to syntex::with_extra_stack
This commit is contained in:
@@ -35,9 +35,6 @@ include!(concat!(env!("OUT_DIR"), "/lib.rs"));
|
||||
#[cfg(not(feature = "with-syntex"))]
|
||||
include!("lib.rs.in");
|
||||
|
||||
#[cfg(feature = "with-syntex")]
|
||||
mod env;
|
||||
|
||||
#[cfg(feature = "with-syntex")]
|
||||
pub fn expand<S, D>(src: S, dst: D) -> Result<(), syntex::Error>
|
||||
where S: AsRef<Path>,
|
||||
@@ -86,11 +83,7 @@ pub fn expand<S, D>(src: S, dst: D) -> Result<(), syntex::Error>
|
||||
reg.expand("", src, dst)
|
||||
};
|
||||
|
||||
// 16 MB stack unless otherwise specified
|
||||
let _tmp_env = env::set_if_unset("RUST_MIN_STACK", "16777216");
|
||||
|
||||
use std::thread;
|
||||
thread::spawn(expand_thread).join().unwrap()
|
||||
syntex::with_extra_stack(expand_thread)
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "with-syntex"))]
|
||||
|
||||
Reference in New Issue
Block a user