File tree Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Expand file tree Collapse file tree 4 files changed +42
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,18 @@ publish = false
8
8
name = " parser"
9
9
harness = false
10
10
11
+ [[bin ]]
12
+ name = " oxc"
13
+ path = " src/oxc.rs"
14
+
15
+ [[bin ]]
16
+ name = " swc"
17
+ path = " src/swc.rs"
18
+
19
+ [[bin ]]
20
+ name = " biome"
21
+ path = " src/biome.rs"
22
+
11
23
[profile .release ]
12
24
opt-level = 3
13
25
lto = " fat"
Original file line number Diff line number Diff line change
1
+ use std:: { env, fs, path:: Path } ;
2
+
3
+ use bench_parser:: biome;
4
+
5
+ pub fn main ( ) {
6
+ let path = env:: args ( ) . nth ( 1 ) . unwrap ( ) ;
7
+ let path = Path :: new ( & path) ;
8
+ let source_text = fs:: read_to_string ( path) . unwrap ( ) ;
9
+ let _ = biome:: parse ( path, & source_text) ;
10
+ }
Original file line number Diff line number Diff line change
1
+ use std:: { env, fs, path:: Path } ;
2
+
3
+ use bench_parser:: oxc;
4
+
5
+ pub fn main ( ) {
6
+ let path = env:: args ( ) . nth ( 1 ) . unwrap ( ) ;
7
+ let path = Path :: new ( & path) ;
8
+ let source_text = fs:: read_to_string ( path) . unwrap ( ) ;
9
+ let _ = oxc:: parse ( path, & source_text) ;
10
+ }
Original file line number Diff line number Diff line change
1
+ use std:: { env, fs, path:: Path } ;
2
+
3
+ use bench_parser:: swc;
4
+
5
+ pub fn main ( ) {
6
+ let path = env:: args ( ) . nth ( 1 ) . unwrap ( ) ;
7
+ let path = Path :: new ( & path) ;
8
+ let source_text = fs:: read_to_string ( path) . unwrap ( ) ;
9
+ let _ = biome:: swc ( path, & source_text) ;
10
+ }
You can’t perform that action at this time.
0 commit comments