Skip to content

Commit ec47621

Browse files
committed
Update top-crates to Cargo 0.65
1 parent 07f6618 commit ec47621

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

top-crates/Cargo.lock

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

top-crates/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ license = "MIT OR Apache-2.0"
99
repository = "https://github.com/integer32llc/rust-playground"
1010

1111
[dependencies]
12-
cargo = "0.64.0"
12+
cargo = "0.65.0"
1313
itertools = "0.10.0"
1414
reqwest = { version = "0.11.0", features = ["blocking"] }
1515
semver = { version = "1.0.11", features = ["serde"] }

top-crates/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use cargo::{
77
registry::PackageRegistry,
88
resolver::{self, features::RequestedFeatures, ResolveOpts, VersionPreferences},
99
source::SourceMap,
10-
Dependency, Package, PackageId, Source, SourceId, Summary, Target,
10+
Dependency, Package, PackageId, QueryKind, Source, SourceId, Summary, Target,
1111
},
1212
sources::RegistrySource,
1313
util::{interning::InternedString, Config, VersionExt},
@@ -302,7 +302,7 @@ fn populate_initial_direct_dependencies(
302302
let dep = Dependency::parse(name, version, global.crates_io)
303303
.unwrap_or_else(|e| panic!("Unable to parse dependency for {}: {}", name, e));
304304

305-
let matches = match global.source.query_vec(&dep) {
305+
let matches = match global.source.query_vec(&dep, QueryKind::Exact) {
306306
Poll::Ready(Ok(v)) => v,
307307
Poll::Ready(Err(e)) => panic!("Unable to query registry for {}: {}", name, e),
308308
Poll::Pending => panic!("Registry not ready to query"),

0 commit comments

Comments
 (0)