rust-lang / rust-lang/docker-rust

Would you be open to adding other tools to the image?

Open
#223 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dockerfile
Stars
537
Forks
111
Avg merge
1d 38m
Merged PRs (30d)
4

Description

Personally, I believe that running cargo install as part of a pipeline is an antipattern - it makes the jobs much longer, for little to no benefit.

That's why I maintain my own image on top of rust which I update as needed.

It would be amazing if popular and powerful crates were added to upstream images. At the moment, I can name three that I would like to see included:

This would be a huge step, and I can see some downsides to this:

  • need for regular builds and publishing of at least latest stable version, to keep tools updated (seems to be implemented for nightly?)
  • increased burden on maintainers in filtering feature requests what to include and what not to include
  • one time: need to set policy on which tools are fine, and which are not

I'm posting this as a general proposal, because from what I can see, the current images only really install the base toolchain and nothing more.


Regarding the policy: one thing I'd explicitly deny is duplicates of existing functionality. So, if cargo-deny makes it, cargo-audit would not get added later on because it adds nothing new. Similarly, sccache (#143) doesn't seem to make sense - most CI runners have their own caching and I'm not sure what it would add on top of that. But the specifics are for later, when you decide if you even want to open up to extra tools.

Contributor guide

No contributing guide indexed for this repository

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

No files or tests are named. Review the current image definitions and verify how nightly tool installation and publishing work; then determine whether cargo-deny, cargo-hack, and cargo-llvm-cov fit a documented inclusion policy, version strategy, and maintenance cadence.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, rust
Domain
devops, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.