Install Rust on windows without downloading Visual C++ build tools

preview_player
Показать описание
- Download Rust from rust-lang website.
- Once the download is completed go through the installation procedure for msys2. it will take a minute or two
- open msys2
- First thing is you got to download mingw toolchain as rust requires cc linker
- `pacman -S mingw-w64-x86_64-toolchain`
- also you have to install base-devel. I thas tools for building and linking such as automake, bison, gcc, gzip, libtool , etc
- `pacman -S base-devel`
- Head to rust installation
- select no 2. manually install the prerequisites
- Yes
- Then Customize installation
- Host triple should be x86_64-pc-windows-gnu

- create a file `.cargo/config` and enter the following details. I will use vscode for that. Location for me is C:/Users/ashis/.cargo create a file `.config` and append the following

```
[target.x86_64-pc-windows-gnu]

```
Рекомендации по теме
Комментарии
Автор

I was going to give up on rust. I can't afford a new pc and the normal installation didn't worked on my old machine, but thanks to this video I could use the 32 bit mingw version. Again, thanks!!!

josgtg
Автор

Thank you very much, I want to learn rust but when I saw that I had to install VS with 5GB I thought: It will be for another time, but searching I found your video. and it worked perfect.

jahbless
Автор

Awesome video. No need to install Visual C++ which takes huge space!

btdat
Автор

A really great video! Wanted to install rust in my new pc, decided to know if I can somehow switch it with mingw's gcc. This video did help me have a good start. Keep it up brother!

ugliBoro
Автор

Thanks! This was very simple and concise to follow.

TrolleningIshraq
Автор

finally found this video again... got myself new pc and now another setup! nice brother!

ugliBoro
Автор

Thanks a lot. Finally I can start learning rust.

rickythegermanshepherd
Автор

Thanks, I could not afford to download 5gb Visual build tools, and this video helped me

fasikunvictor
Автор

Hey man great video, you're a life saver dude.

overrevvv
Автор

Thanks!
For me it worked without MSYS2 and MinGW toolchains. Rust probably downloaded it automatically.

matyasmarkkovacs
Автор

Tnx a lot. I was already wondering where I'd get the bandwidth for MSVC download.

quarkedstuff
Автор

this is best way! coz visual studio based dependency tools takes lots of disk space!
Thanks!

prateekSpace
Автор

is `std::os::windows` compilable from mingw?
like try compiling the windows-rs crate...

corewwwi
Автор

How would I uninstall it if I ever need to?

DailyFrankPeter
Автор

I need your help
Please reply me.. any social media urs?

AdityaGupta-cbii