rust-lang / rust-lang/rustup

Use system tmp folder

Open
#872 3 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

$HOME is meant for user files. I wish rustup used /tmp instead of $HOME/.rustup/tmp.

Example use case: my home folder at school has a very constrained amount of space (about 3GB), which means that installing, say, rust-src might fail if I run out of space. This is regardless of whether or not I have sufficient space to accommodate the fully installed rust-src component.

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 rustup's temporary download handling and how it currently uses $HOME/.rustup/tmp. Determine how a system temporary directory such as /tmp should be selected for component installation, then verify that installing components still succeeds when the home directory has very limited space.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.