Skip to content

Commit 63a3410

Browse files
committed
Fix sources::registry::parse_registry_dependency
1 parent f16291d commit 63a3410

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cargo/sources/registry.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,11 @@ impl<'a, 'b> RegistrySource<'a, 'b> {
417417

418418
let dep = try!(Dependency::parse(name.as_slice(), Some(req.as_slice()),
419419
&self.source_id));
420-
drop(target); // FIXME: pass this in
420+
421421
Ok(dep.optional(optional)
422422
.default_features(default_features)
423-
.features(features))
423+
.features(features)
424+
.only_for_platform(target))
424425
}
425426

426427
/// Actually perform network operations to update the registry

0 commit comments

Comments
 (0)