Allow path-specific dependencies in [dev-dependencies] #3745
Labels
A-dev-dependencies
Area: [dev-dependencies]
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-publish
Cargo currently refuses any
Cargo.toml
that includes a path-specific dependency. This is overly zealous, as crates.io could allowdev-dependencies
to be path-specific: These never get touched while cargo builds something from crates.io.A use case for a path-specific
dev-dependency
is a test-crate for integration tests, breaking a dependency cycle where the main crate dev-depends on a test-crate (as a path-specificdev-dependency
) and the test-crate depends on the main-crate (as a normaldependency
). Cargo actually does that right thing oncargo test
anddependency
)dev-dependency
) andOn a normal
cargo build
, the path-specificdev-dependency
will be ignored.CC @alexcrichton
The text was updated successfully, but these errors were encountered: