-
Notifications
You must be signed in to change notification settings - Fork 13k
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
offline installer should include rust-src
#136268
Comments
You don't have to install msvc when using rustup, that only happens if you select the option to do so. Just select the third option when it asks. Or install the tools rustc needs before installing rustup. |
the third option that rustup shows is still msvc version:
the
there is no method provided in documention to "install the tools rustc needs before installing rustup." |
after installation the GNU version is only 300MB larger than MSVC version, it would be better to combine two installers into one installer. |
If you do a custom install, you can type rustup
|
but the GNU version is already installed, and the the rustup-init would be better to list the available options to input when at that step of prompt of installation |
is this a rustc issue or a rustup issue? |
I tried this code:
<code>
I expected to see this happen: explanation
Instead, this happened: explanation
Meta
rustc --version --verbose
:Backtrace
offline installer should include
rust-src
by default, to avoid to let user manually to download the 2MB file and put into a specific correct folder.I downloaded
rust-1.84.0-x86_64-pc-windows-gnu.msi
to avoid to install 7GB msvc c++ compiler and linker, but the language-serverrust-analyzer
refused to work because of lackingrust-src
in the offline installation.the resolution is to manually download
https://static.rust-lang.org/dist/rust-src-1.84.0.tar.gz.
found from rust-lang/rust-analyzer#4172 (comment) which is not in installation part in the rust documentation.and finally need to construct the correct folder path.
Therefore, the offline installers should include the 2MB content by default to prevent the users run into a trap
The text was updated successfully, but these errors were encountered: