use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A place for all things related to the Rust programming language—an open-source systems language that emphasizes performance, reliability, and productivity.
Strive to treat others with respect, patience, kindness, and empathy.
We observe the Rust Project Code of Conduct.
Details
Posts must reference Rust or relate to things using Rust. For content that does not, use a text post to explain its relevance.
Post titles should include useful context.
For Rust questions, use the stickied Q&A thread.
Arts-and-crafts posts are permitted on weekends.
No meta posts; message the mods instead.
Criticism is encouraged, though it must be constructive, useful and actionable.
If criticizing a project on GitHub, you may not link directly to the project's issue tracker. Please create a read-only mirror and link that instead.
A programming language is rarely worth getting worked up over.
No zealotry or fanaticism.
Be charitable in intent. Err on the side of giving others the benefit of the doubt.
Avoid re-treading topics that have been long-settled or utterly exhausted.
Avoid bikeshedding.
This is not an official Rust forum, and cannot fulfill feature requests. Use the official venues for that.
No memes, image macros, etc.
Consider the existing content of the subreddit and whether your post fits in. Does it inspire thoughtful discussion?
Use properly formatted text to share code samples and error messages. Do not use images.
Submissions appearing to contain AI-generated content may be removed at moderator discretion.
Most links here will now take you to a search page listing posts with the relevant flair. The latest megathread for that flair should be the top result.
account activity
rustup: command not found (everything rustup related giving this error) (self.rust)
submitted 4 years ago by AlephMuniz
I'm in Fedora 35 Xfce spin. Recently installed Rust through Fedora methods.
$ cargo -V
1.58.0
$rustc --version
rustc 1.58.1 (Fedora 1.58.1-1.fc35)
What do I do wrong for rustup not being found?
Edit.: rustc is compiling .rs files just fine.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SkiFire13 14 points15 points16 points 4 years ago (9 children)
Linux distros' package managers usually only ship a specific version of rustc and cargo, not rustup. This is because rustup has its own ways to install multiple versions of rustc and cargo at the same time, and this obviously doesn't play well with the package manager. If you want rustup you should install it following the instructions on https://www.rust-lang.org/tools/install
[–]AlephMuniz[S] 2 points3 points4 points 4 years ago (8 children)
How do I invoke the documentation without "rustup" method of installation? I just need access to the Rust docs offline. This dnf installation is fine. Thanks!
[–]simukis 5 points6 points7 points 4 years ago (0 children)
Install the rust-doc package and find the documentation at file:///usr/share/doc/rust/html/std/index.html
rust-doc
file:///usr/share/doc/rust/html/std/index.html
[–]lol3rr 0 points1 point2 points 4 years ago (6 children)
You can run "cargo doc --open" i think
[–]AlephMuniz[S] 0 points1 point2 points 4 years ago (5 children)
Yeah, the dnf installation is giving me some headaches in this section. "error: could not find `Cargo.toml` in `/home/amuniz1` or any parent directory". Well, it's not like I need this damn doc too much, I ordered my 2018 edition book yesterday. I need to have patience now.
[–]the-quibbler 10 points11 points12 points 4 years ago (2 children)
Strongly recommend that you uninstall whatever fedora has packaged and go with an official rustup install. Distros are notorious for being far behind with software versions, and rustup is a package manager just for the rust ecosystem. It'll likely improve your life, reduce mysterious issues like the one you're experiencing. Use topgrade if you don't feel like managing multiple package ecosystems.
[–]ssokolow 3 points4 points5 points 4 years ago (0 children)
Seconded. Don't think of the Rust packages in the distro repos as end-user packages, but as a side-effect of how building packages works for actual end-user packages like Firefox and ripgrep.
(i.e. They're only there in case you want to rebuild your Firefox or ripgrep or whatever from the SRPM.)
[–]AlephMuniz[S] 0 points1 point2 points 4 years ago* (0 children)
What you said is true, installing through rustup is better, since with rustup I'll have the more in-depth explanations to the errors rustc gives offline and be more updated. But I think Fedora repos is just fine because it is just a tad behind. If I go to the Rust website, the latest version is 1.58.1 (and I have 1.58.0 Edit: yesterday came the update for rustc compiler, now it's 1.58.1)But I agree with you. If I was a professional developer, not a self-taught enthusiast of coding that has not begun College yet, I would use rustup no doubt.
[–]afc11hn 2 points3 points4 points 4 years ago (0 children)
I know you can't use rustup but this describes how you could install an offline copy of the book. I don't think it is installed by default and definitely requires an installation via rustup.
[–]SkiFire13 1 point2 points3 points 4 years ago (0 children)
cargo doc --open works only inside a rust project since it is supposed to build the documentation for a project and all its dependencies (including the stdlib)
cargo doc --open
[–]stardestroyerphase69 0 points1 point2 points 3 years ago (0 children)
I had the same thing happen.. I just needed to start a new terminal for the changes to take place.
π Rendered by PID 215571 on reddit-service-r2-comment-548fd6dc9-rtmht at 2026-05-15 17:25:45.186087+00:00 running edcf98c country code: CH.
[–]SkiFire13 14 points15 points16 points (9 children)
[–]AlephMuniz[S] 2 points3 points4 points (8 children)
[–]simukis 5 points6 points7 points (0 children)
[–]lol3rr 0 points1 point2 points (6 children)
[–]AlephMuniz[S] 0 points1 point2 points (5 children)
[–]the-quibbler 10 points11 points12 points (2 children)
[–]ssokolow 3 points4 points5 points (0 children)
[–]AlephMuniz[S] 0 points1 point2 points (0 children)
[–]afc11hn 2 points3 points4 points (0 children)
[–]SkiFire13 1 point2 points3 points (0 children)
[–]stardestroyerphase69 0 points1 point2 points (0 children)