Skip to content

Commit 9dcf2e3

Browse files
authored
chore: Update to cargo_metadata 0.23 (#4230)
1 parent b27b49d commit 9dcf2e3

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

Cargo.lock

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

sqlx-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ dialoguer = { version = "0.11", default-features = false }
3838
serde_json = "1.0.73"
3939
glob = "0.3.0"
4040
openssl = { version = "0.10.46", optional = true }
41-
cargo_metadata = "0.18.1"
41+
cargo_metadata = "0.23.1"
4242
filetime = "0.2"
4343

4444
backoff = { version = "0.4.0", features = ["futures", "tokio"] }

sqlx-cli/src/metadata.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ use std::{
99
use anyhow::Context;
1010
use cargo_metadata::{
1111
Metadata as CargoMetadata, Package as MetadataPackage, PackageId as MetadataId,
12+
PackageName as MetadataPackageName,
1213
};
1314

1415
/// The minimal amount of package information we care about
@@ -17,13 +18,13 @@ use cargo_metadata::{
1718
/// are used to trigger recompiles of packages within the workspace
1819
#[derive(Debug)]
1920
pub struct Package {
20-
name: String,
21+
name: MetadataPackageName,
2122
src_paths: Vec<PathBuf>,
2223
}
2324

2425
impl Package {
2526
pub fn name(&self) -> &str {
26-
&self.name
27+
self.name.as_str()
2728
}
2829

2930
pub fn src_paths(&self) -> &[PathBuf] {

0 commit comments

Comments
 (0)