You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnErr(cargo_err(&format_args!("Dependency `{}` is hosted on another registry. Cross-registry dependencies are not permitted on crates.io.",&*dep.name)));
returnErr(cargo_err(&format_args!("wildcard (`*`) dependency constraints are not allowed \
447
+
on crates.io. Crate with this problem: `{}` See https://doc.rust-lang.org/cargo/faq.html#can-\
448
+
libraries-use--as-a-version-for-their-dependencies for more \
449
+
information",&*dep.name)));
450
+
}
451
+
}
452
+
453
+
Ok(())
454
+
})
455
+
.collect::<Result<Vec<_>,_>>()?;
456
+
457
+
Ok(())
458
+
}
459
+
432
460
#[instrument(skip_all)]
433
461
pubfnadd_dependencies(
434
462
conn:&mutPgConnection,
@@ -446,26 +474,14 @@ pub fn add_dependencies(
446
474
let new_dependencies = deps
447
475
.iter()
448
476
.map(|dep| {
449
-
ifletSome(registry) = &dep.registry{
450
-
if !registry.is_empty(){
451
-
returnErr(cargo_err(&format_args!("Dependency `{}` is hosted on another registry. Cross-registry dependencies are not permitted on crates.io.",&*dep.name)));
452
-
}
453
-
}
454
-
455
477
// Match only identical names to ensure the index always references the original crate name
0 commit comments