Cannot download rust src

https://static.rust-lang.org/dist/rust-stable-src.tar.gz

every time I tried to download I get a not found error page

Not Found Error Page

Where did you get this link? If it is somewhere on the official site, this seems to be a bug.

1 Like

Looks like the broken link is here :

https://forge.rust-lang.org/infra/other-installation-methods.html#source-code

1 Like

the link is the not found page link when I try to download the source code.
why does the source code need to be downloaded separately, wouldn't it be better if rustup adds it when new version is updated and call it from there when ever something needs to be compiled against the source code.

Why are you downloading the rust source code? Rustup should do this automatically. If it doesn't, you can get away with saying

rustup component add rust-src

Thanks to @OvermindDL1

1 Like

RUST SRC PATH environment variable

I get this

rustup component install rust-src
error: Found argument 'install' which wasn't expected, or isn't valid in this context

USAGE:
rustup component

For more information try --help

s/install/add/

rustup component add rust-src
1 Like

where does rust add these rust-src I am using linux

Try

~/.rustup/toolchains/<toolchain>/lib/rustlib
1 Like

Is this broken link going to get fixed??

you might want to file an issue here about the broken link on the rust-forge site : https://github.com/rust-lang/rust-forge/issues