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
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.
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.
Implementation PR: #4953
Summary:
With
cargo-features = ["rename-dependency"]in Cargo.toml, you will be able to specify dependencies asbar = { package = "foo", version = "0.1" }. That adds dependency tofoopackage fromcrates.io, which will be visible asextern crate bar.Steps:
cargo metadatashould include information about renames, Include more information about dependencies in Cargo metadata #5583.outstanding bugs:
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: