Skip to content

Conversation

@dingxiangfei2009
Copy link

@dingxiangfei2009 dingxiangfei2009 commented Dec 19, 2025

Judging from user feedback coming out of Debian distros, it appears that after installing rustup from the package manager it is not immediately clear which command installs the toolchain. True that rustup from rustup.rs one-liner makes one-stop installation, Debian packaging actually skips the essential rustup-init step as of writing. This left a few Debian users, which I talked to recently, feel lost in their first attempt to use the toolchain.

This patch adds a small text so that after installation of rustup, which normally does not invoke the toolchain installation for the user, the user can still receive guidance on how to set up the local toolchain immediately.

@djc
Copy link
Contributor

djc commented Dec 19, 2025

I think it would be good to try and address this problem, but not sure adding a "common commands" section to the end is the best way to do it. Wonder if we can add this to the top, either as part of Usage: or even before that.

@rami3l
Copy link
Member

rami3l commented Dec 19, 2025

I think it would be good to try and address this problem, but not sure adding a "common commands" section to the end is the best way to do it.

I would like to disagree with @djc on that matter, as when a command is executed, the first thing I see is the last lines of its output, which is different from when reading a normal doc page.


OTOH I do think the case for Debian is still somewhat particular, since installing via APT technically still has quite limited support notably because it explicitly bypasses the rustup-init stage.

We have tried to improve the situation in both our docs and, in my case, its homebrew packaging:

> brew install rustup
[..]
==> Caveats
To initialize `rustup`, set a default toolchain:
  rustup default stable

If you have `rust` installed, ensure you have "$(brew --prefix rustup)/bin"
before "$(brew --prefix)/bin" in your $PATH:
  https://rust-lang.github.io/rustup/installation/already-installed-rust.html

So the policy that I had in the past would be to acknowledge this as the package manager/maintainer's responsibility. Can something similar be done on Debian's side?

@dingxiangfei2009 dingxiangfei2009 force-pushed the first-landing-glide-slope branch from 770dbdc to 03c519d Compare December 22, 2025 10:12
@dingxiangfei2009
Copy link
Author

I would also prefer to leave the common commands as the last lines of the help text, so that this information does not scroll away in the terminal print out.

As for Debian, I am currently researching a way to update the package description of rustup so that one can be guided to initiate the missing init step, like how homebrew guides the users.

Copy link
Member

@rami3l rami3l left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo one tiny bit :)

{LITERAL}$ rustup update{LITERAL:#}
Update Rust toolchains and rustup
Copy link
Member

@rami3l rami3l Dec 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I've just compared that with tldr where we have descriptions followed by commands, and that's more intuitive IMHO:

> tldr cargo
[..]
  Manage Rust projects and their module dependencies (crates).
  Some subcommands such as `build` have their own usage documentation.
  More information: <https://doc.rust-lang.org/stable/cargo/>.

  Search for crates:

      cargo search search_string

  Install a binary crate:

      cargo install crate_name
[..]

@epage Does cargo have a similar section that we need to align format with?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it looks much better. Suggestion applied.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dingxiangfei2009 Thanks! Let's wait for the final confirmation to see if there's any alignments to be made and I believe we are done :)

Judging from user feedback coming out of Debian
distros, it appears that after installing `rustup`
from the package manager it is not immediately
clear which command installs the toolchain.
This patch adds a small text so that after
installation of `rustup`, which normally does not
invoke the toolchain installation for the user,
the user can still receive guidance on how to set
up the local toolchain immediately.

Signed-off-by: Xiangfei Ding <[email protected]>
@dingxiangfei2009 dingxiangfei2009 force-pushed the first-landing-glide-slope branch from 03c519d to afdf053 Compare December 22, 2025 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants