File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
3
3
name = " html5ever"
4
- version = " 0.22.2 "
4
+ version = " 0.22.3 "
5
5
authors = [ " The html5ever Project Developers" ]
6
6
license = " MIT / Apache-2.0"
7
7
repository = " https://github.com/servo/html5ever"
Original file line number Diff line number Diff line change @@ -13,17 +13,22 @@ extern crate proc_macro2;
13
13
14
14
use std:: env;
15
15
use std:: path:: Path ;
16
+ use std:: thread:: Builder ;
16
17
17
18
#[ path = "macros/match_token.rs" ]
18
19
mod match_token;
19
20
20
21
fn main ( ) {
21
22
let manifest_dir = env:: var ( "CARGO_MANIFEST_DIR" ) . unwrap ( ) ;
22
23
23
- let rules_rs = Path :: new ( & manifest_dir) . join ( "src/tree_builder/rules.rs" ) ;
24
- match_token:: expand (
25
- & rules_rs,
26
- & Path :: new ( & env:: var ( "OUT_DIR" ) . unwrap ( ) ) . join ( "rules.rs" ) ) ;
24
+ let input = Path :: new ( & manifest_dir) . join ( "src/tree_builder/rules.rs" ) ;
25
+ let output = Path :: new ( & env:: var ( "OUT_DIR" ) . unwrap ( ) ) . join ( "rules.rs" ) ;
26
+ println ! ( "cargo:rerun-if-changed={}" , input. display( ) ) ;
27
27
28
- println ! ( "cargo:rerun-if-changed={}" , rules_rs. display( ) ) ;
28
+ // We have stack overflows on Servo's CI.
29
+ let handle = Builder :: new ( ) . stack_size ( 128 * 1024 * 1024 ) . spawn ( move || {
30
+ match_token:: expand ( & input, & output) ;
31
+ } ) . unwrap ( ) ;
32
+
33
+ handle. join ( ) . unwrap ( ) ;
29
34
}
You can’t perform that action at this time.
0 commit comments