Rust official download website
https://www.rust-lang.org/tools/install
To use rust, you need to install C++ related tools on your computer in advance, and there will also be tips here
When installing, check these options. I didn’t check them before, but it didn’t work after downloading them many times~
Select 1
to view the version command: rustc --version
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
Install Clion compiler
https://www.cnblogs.com/FLYMANJB/p/13339001.html
configuration
Effect:
code
fn main() {
println!("Hello, world!");
println!("this is a test!")
}