From: Wim Hueskes Date: Mon, 26 Sep 2016 22:55:58 +0000 (+0200) Subject: Do not download dependencies from other platforms X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0a4fbbf25b3590df5564a97040df433bf2b3b65f;p=cargo.git Do not download dependencies from other platforms --- diff --git a/src/cargo/ops/cargo_rustc/context.rs b/src/cargo/ops/cargo_rustc/context.rs index 922da9ccd..fe0a94241 100644 --- a/src/cargo/ops/cargo_rustc/context.rs +++ b/src/cargo/ops/cargo_rustc/context.rs @@ -454,7 +454,7 @@ impl<'a, 'cfg> Context<'a, 'cfg> { let deps = self.resolve.deps(id); let mut ret = try!(deps.filter(|dep| { unit.pkg.dependencies().iter().filter(|d| { - d.name() == dep.name() + d.name() == dep.name() && d.version_req().matches(dep.version()) }).any(|d| { // If this target is a build command, then we only want build // dependencies, otherwise we want everything *other than* build