-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
C-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.
Description
Implementation PR: #4953
Summary:
With cargo-features = ["rename-dependency"]
in Cargo.toml, you will be able to specify dependencies as bar = { package = "foo", version = "0.1" }
. That adds dependency to foo
package from crates.io
, which will be visible as extern crate bar
.
Steps:
-
cargo metadata
should include information about renames, Include more information about dependencies in Cargo metadata #5583. -
outstanding bugs:
- assertion failed: locate_ctxt.hash.is_none() when running "cargo test" rust#51259
- rename-dependency doesn't perform hyphen/underscore translation rust#51795
- ICE when using rename-dependency with a crate that is also a transitive dependency rust#51796
- Renamed optional dependency should use the renamed name #5753
-
Figure out to do about --features on the command line? Does --features foo/bar imply the package foo or the crate that's renamed to foo? We probably want the latter, and that's probably buggy right now.
Stabilization TODO:
- move docs from https://github.com/rust-lang/cargo/blob/5845464cf92a348f95dc6b43133c017c37fcb684/src/doc/src/reference/unstable.md#rename-dependency to proper location.
- remove feature gate
TheDan64, demurgos, scottmcm, hcpl, alexander-irbis and 7 moreRandyMcMillan
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: A tracking issue for something unstable.Category: A tracking issue for something unstable.