File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " cssparser"
3
- version = " 0.23.9 "
3
+ version = " 0.23.10 "
4
4
authors = [ " Simon Sapin <simon.sapin@exyr.org>" ]
5
5
6
6
description = " Rust implementation of CSS Syntax Level 3"
Original file line number Diff line number Diff line change @@ -177,8 +177,15 @@ macro_rules! define_proc_macros {
177
177
fn wrapped( $input: & str ) -> String {
178
178
$body
179
179
}
180
+
181
+ // syn uses a huge amount of stack in debug mode.
180
182
let derive_input_string = derive_input. to_string( ) ;
181
- 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( )
182
189
}
183
190
) +
184
191
}
You can’t perform that action at this time.
0 commit comments