File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -12,18 +12,20 @@ fontspector-checkapi = { path = "../fontspector-checkapi" }
12
12
# These profiles are baked-in
13
13
profile-universal = { path = " ../profile-universal" }
14
14
profile-googlefonts = { path = " ../profile-googlefonts" }
15
- # skrifa = "0.15.0"
16
- # read-fonts = "0.15.0"
17
15
pluginator = " 1.0.1"
18
16
clap = {version = " 3.2.5" , features = [" derive" ]}
19
17
itertools = " 0.10.0"
20
18
log = " 0.4.14"
21
19
env_logger = " 0.8"
22
20
rayon = " 1.0.1"
23
- kurbo = { version = " 0.8.1" }
24
21
indicatif = {version = " 0" , features = [" rayon" ]}
25
- simple_logger = " 1.13.0"
26
- regex = " 1.5.4"
27
- serde_json = " 1.0"
28
22
serde = {version = " 1.0.130" , features =[" derive" ] }
23
+
24
+ # Terminal reporter
29
25
termimad = " 0.14"
26
+
27
+ # JSON reporter
28
+ serde_json = " 1.0"
29
+
30
+ # Markdown/HTML reporters
31
+ tera = " 1.20.0"
Original file line number Diff line number Diff line change @@ -80,20 +80,20 @@ fn main() {
80
80
. as_ref ( )
81
81
. map ( |filename| {
82
82
std:: fs:: File :: open ( filename) . unwrap_or_else ( |e| {
83
- println ! ( "Could not open configuration file {}: {:}" , filename, e) ;
83
+ log :: error !( "Could not open configuration file {}: {:}" , filename, e) ;
84
84
std:: process:: exit ( 1 )
85
85
} )
86
86
} )
87
87
. and_then ( |file| {
88
88
serde_json:: from_reader ( std:: io:: BufReader :: new ( file) ) . unwrap_or_else ( |e| {
89
- println ! ( "Could not parse configuration file: {:}" , e) ;
89
+ log :: error !( "Could not parse configuration file: {:}" , e) ;
90
90
std:: process:: exit ( 1 )
91
91
} )
92
92
} )
93
93
. map ( |file : serde_json:: Value | {
94
94
file. as_object ( )
95
95
. unwrap_or_else ( || {
96
- println ! ( "Configuration file must be a JSON object" ) ;
96
+ log :: error !( "Configuration file must be a JSON object" ) ;
97
97
std:: process:: exit ( 1 )
98
98
} )
99
99
. clone ( )
You can’t perform that action at this time.
0 commit comments