We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad39746 commit b67248eCopy full SHA for b67248e
procedural-masquerade/lib.rs
@@ -177,8 +177,15 @@ macro_rules! define_proc_macros {
177
fn wrapped($input: &str) -> String {
178
$body
179
}
180
+
181
+ // syn uses a huge amount of stack in debug mode.
182
let derive_input_string = derive_input.to_string();
- wrapped($crate::_extract_input(&derive_input_string)).parse().unwrap()
183
+ let handle =
184
+ ::std::thread::Builder::new().stack_size(128 * 1024 * 1024).spawn(move || {
185
+ wrapped($crate::_extract_input(&derive_input_string))
186
+ }).unwrap();
187
188
+ handle.join().unwrap().parse().unwrap()
189
190
)+
191
0 commit comments