Skip to content

Commit d0d6838

Browse files
committed
Update dependencies
1 parent b5a3a26 commit d0d6838

21 files changed

Lines changed: 3826 additions & 3866 deletions

Cargo.lock

Lines changed: 55 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build = "build.rs"
77

88
[build-dependencies]
99
cc = "^1.0"
10-
phf_codegen = "^0.7"
10+
phf_codegen = "^0.8"
1111

1212
[dependencies]
1313
actix-http = "^0.2"
@@ -18,15 +18,15 @@ bytes = "^0.4"
1818
clap = "^2.33"
1919
enum-iterator = "^0.5"
2020
globset = "^0.4"
21-
json = "^0.11"
22-
tree-sitter = "^0.3"
21+
json = "^0.12"
22+
tree-sitter = "^0.5"
2323
termcolor = "^1.0"
2424
crossbeam = "^0.7"
2525
lazy_static = "^1.3"
26-
num_cpus = "^1.10"
26+
num_cpus = "^1.11"
2727
num-format = "^0.4"
2828
petgraph = "^0.4"
29-
phf = { version = "^0.7", features = ["macros"] }
29+
phf = { version = "^0.8", features = ["macros"] }
3030
regex = "^1.1"
3131
serde = "^1.0"
3232
serde_json = "^1.0"

build.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,13 @@ fn mk_predef(data_name: &str, set_name: &str) {
4242
let path = Path::new(&env::var("OUT_DIR").unwrap()).join(format!("gen_{}.rs", data_name));
4343
let mut file = BufWriter::new(fs::File::create(&path).unwrap());
4444
writeln!(&mut file, "#[allow(clippy::unreadable_literal)]").unwrap();
45-
writeln!(&mut file, "static {}: phf::Set<&'static str> =", set_name).unwrap();
46-
set.build(&mut file).unwrap();
47-
writeln!(&mut file, ";").unwrap();
45+
writeln!(
46+
&mut file,
47+
"static {}: phf::Set<&'static str> =\n{};\n",
48+
set_name,
49+
set.build()
50+
)
51+
.unwrap();
4852
}
4953

5054
fn collect_tree_sitter_dirs(ignore: Vec<String>) -> Vec<String> {

0 commit comments

Comments
 (0)