Command for specifically installing dev-dependencies #6196
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Command-install
json
can be specified as[dependencies]
, to be installed whencargo build
executes.thrift
can be specified as[build-dependencies]
, to be installed whencargo build
executes.quickcheck
can be specified as[dev-dependencies]
, to be installed whencargo test
executes.But how about soft build-time dependencies like
cargo-script
supposed to be managed withCargo.toml
, that are not imported by any Rust code but still required for shell commands?Could we get a cargo subcommand or flag to forcibly install all
[dev-dependencies]
, regardless of whether the dependency is referenced by anextern crate
or not?As a workaround, I am currently managing these kinds of development dependencies by manually executing
cargo install <dependency>
, but I would prefer to manage these with the sameCargo.toml
file as everything else.The text was updated successfully, but these errors were encountered: