Add --no-dev-dependencies
to generate-lockfile
#8514
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Describe the problem you are trying to solve
In some cases, crates may have cyclic dependencies if you count dev-dependencies, but work fine without. For example, the proc-macro https://crates.io/crates/zbus_macros 1.0.0 has a dev-dependency on https://crates.io/crates/zbus 1.0.0, which in turn has a normal dependency on zbus_macros. When docs.rs tried to generate the lockfile for zbus_macros, it got an error because zbus had not yet been published:
Describe the solution you'd like
docs.rs doesn't actually need the dev-dependencies to run
cargo doc
. If we could usegenerate-lockfile --no-dev-dependencies
that should fix the issues here. I have no idea how hard that would be for cargo though.Notes
The text was updated successfully, but these errors were encountered: