Skip to content

Update cargo.md #2780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/cargo.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ auto-completion and jump-to-definition functionality for [VS Code], [Emacs],

<details>

- On Debian/Ubuntu, you can also install Cargo, the Rust source and the
[Rust formatter] via `apt`. However, this gets you an outdated Rust version
and may lead to unexpected behavior. The command would be:
- On Debian/Ubuntu, you can install `rustup` via `apt`:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a step after this, to run rustup, or does that occur automatically?

Copy link
Collaborator

Choose a reason for hiding this comment

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

once rustup is installed, this does not yet have a default toolchain installed. You could append rustup default stable to achieve that goal. And maybe link to https://wiki.debian.org/Rust (Using crates from the Internet (with rustup))

Copy link
Collaborator

@michael-kerscher michael-kerscher Jun 20, 2025

Choose a reason for hiding this comment

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

additional hint: if you installed via some other method into your home directory already you might want to use rustup self uninstall to avoid using the manually installed version - otherwise this might be unexpected


```shell
sudo apt install cargo rust-src rustfmt
sudo apt install rustup
```

- On macOS, you can use [Homebrew](https://brew.sh/) to install Rust, but this
Expand Down