rust-lang / rust-lang/cargo

Make commands in dev-dependencies available to run

Open
#2,267 33 comments 98 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

A-build-scripts A-dev-dependencies C-feature-request Command-run S-needs-design Z-bindeps
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Description

I have a rust project which uses a few shell scripts that need commands from other crates. I added them as dev-dependencies, but I couldn't find the binaries anywhere. It would be nice if the binaries were available to run from the command line.

As an example, npm makes binaries available in node_modules/.bin, so you can put them in devDependencies and use them in scripts.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing Cargo's handling of dev-dependencies and command-line execution, using the requested npm node_modules/.bin behavior as a comparison. Done means commands supplied by dev-dependencies can be found and run from the project's shell scripts without manual installation.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.