Skip to content

Commit 423b231

Browse files
committed
Tidy up deps
1 parent ce5decf commit 423b231

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

fontspector-cli/Cargo.toml

+8-6
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@ fontspector-checkapi = { path = "../fontspector-checkapi" }
1212
# These profiles are baked-in
1313
profile-universal = { path = "../profile-universal" }
1414
profile-googlefonts = { path = "../profile-googlefonts" }
15-
# skrifa = "0.15.0"
16-
# read-fonts = "0.15.0"
1715
pluginator = "1.0.1"
1816
clap = {version = "3.2.5", features = ["derive"]}
1917
itertools = "0.10.0"
2018
log = "0.4.14"
2119
env_logger = "0.8"
2220
rayon = "1.0.1"
23-
kurbo = { version = "0.8.1" }
2421
indicatif = {version = "0", features = ["rayon"]}
25-
simple_logger = "1.13.0"
26-
regex = "1.5.4"
27-
serde_json = "1.0"
2822
serde = {version = "1.0.130", features=["derive"] }
23+
24+
# Terminal reporter
2925
termimad = "0.14"
26+
27+
# JSON reporter
28+
serde_json = "1.0"
29+
30+
# Markdown/HTML reporters
31+
tera = "1.20.0"

fontspector-cli/src/main.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,20 @@ fn main() {
8080
.as_ref()
8181
.map(|filename| {
8282
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);
8484
std::process::exit(1)
8585
})
8686
})
8787
.and_then(|file| {
8888
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);
9090
std::process::exit(1)
9191
})
9292
})
9393
.map(|file: serde_json::Value| {
9494
file.as_object()
9595
.unwrap_or_else(|| {
96-
println!("Configuration file must be a JSON object");
96+
log::error!("Configuration file must be a JSON object");
9797
std::process::exit(1)
9898
})
9999
.clone()

0 commit comments

Comments
 (0)