Skip to content

Commit 35016c7

Browse files
committed
cargo_metadata 0.14
Removes the following dependent crates: * semver-parser * pest * ucd-trie Removes project_model's dependency on itertools
1 parent eab5d98 commit 35016c7

File tree

6 files changed

+13
-44
lines changed

6 files changed

+13
-44
lines changed

Cargo.lock

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

crates/flycheck/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ doctest = false
1111
[dependencies]
1212
crossbeam-channel = "0.5.0"
1313
log = "0.4.8"
14-
cargo_metadata = "0.13"
14+
cargo_metadata = "0.14"
1515
serde = { version = "1.0.106", features = ["derive"] }
1616
serde_json = "1.0.48"
1717
jod-thread = "0.1.1"

crates/proc_macro_srv/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ proc_macro_api = { path = "../proc_macro_api", version = "0.0.0" }
2020
[dev-dependencies]
2121
test_utils = { path = "../test_utils" }
2222
toolchain = { path = "../toolchain" }
23-
cargo_metadata = "0.13"
23+
cargo_metadata = "0.14"
2424
expect-test = "1.1.0"
2525

2626
# used as proc macro test targets

crates/proc_macro_test/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ doctest = false
1111
[build-dependencies]
1212
proc_macro_test_impl = { path = "imp", version = "0.0.0" }
1313
toolchain = { path = "../toolchain", version = "0.0.0" }
14-
cargo_metadata = "0.13"
14+
cargo_metadata = "0.14"

crates/project_model/Cargo.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ doctest = false
1111
[dependencies]
1212
log = "0.4.8"
1313
rustc-hash = "1.1.0"
14-
cargo_metadata = "0.13"
14+
cargo_metadata = "0.14"
1515
serde = { version = "1.0.106", features = ["derive"] }
1616
serde_json = "1.0.48"
1717
anyhow = "1.0.26"
18-
itertools = "0.10.0"
1918
la-arena = { version = "0.2.0", path = "../../lib/arena" }
2019

2120
cfg = { path = "../cfg", version = "0.0.0" }

crates/project_model/src/build_data.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use std::{
99
use anyhow::Result;
1010
use cargo_metadata::camino::Utf8Path;
1111
use cargo_metadata::{BuildScript, Message};
12-
use itertools::Itertools;
1312
use paths::{AbsPath, AbsPathBuf};
1413
use rustc_hash::FxHashMap;
1514
use serde::Deserialize;
@@ -304,9 +303,7 @@ fn inject_cargo_env(package: &cargo_metadata::Package, build_data: &mut PackageB
304303
env.push(("CARGO_PKG_VERSION_MAJOR".into(), package.version.major.to_string()));
305304
env.push(("CARGO_PKG_VERSION_MINOR".into(), package.version.minor.to_string()));
306305
env.push(("CARGO_PKG_VERSION_PATCH".into(), package.version.patch.to_string()));
307-
308-
let pre = package.version.pre.iter().map(|id| id.to_string()).format(".");
309-
env.push(("CARGO_PKG_VERSION_PRE".into(), pre.to_string()));
306+
env.push(("CARGO_PKG_VERSION_PRE".into(), package.version.pre.to_string()));
310307

311308
let authors = package.authors.join(";");
312309
env.push(("CARGO_PKG_AUTHORS".into(), authors));

0 commit comments

Comments
 (0)