Rust installation and configuration tutorial

Rust official download website
https://www.rust-lang.org/tools/install
insert image description here
To use rust, you need to install C++ related tools on your computer in advance, and there will also be tips here
insert image description here
insert image description here

When installing, check these options. I didn’t check them before, but it didn’t work after downloading them many times~
insert image description here

insert image description here
Select 1
insert image description here
insert image description here
to view the version command: rustc --version
insert image description here
install and configure the compiler
https://www.jianshu.com/p/1aa989808e15

rustup toolchain install stable-x86_64-pc-windows-gnu

rustup default stable-x86_64-pc-windows-gnu

insert image description here
Install Clion compiler
https://www.cnblogs.com/FLYMANJB/p/13339001.html
configuration
insert image description here

Effect:
code

fn main() {
    
    
    println!("Hello, world!");

    println!("this is a test!")
}

insert image description here

Guess you like

Origin blog.csdn.net/weixin_43896829/article/details/120937112