Rust language

       Rust language is a systems programming language , focusing on safety. Rust-language system designed to ensure the safety of memory, it does not allow a null pointer in the security code, drape pointer and data competition. 2015 published the first edition

 

https://kaisery.github.io/trpl-zh-cn/

 

installation

Reference: https://blog.csdn.net/weixin_43882409/article/details/87616268?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu- 1

https://blog.csdn.net/weixin_40411915/article/details/100109793

 

The installation is complete

 

The first program

// This is the main function
fn main() {
   // The statements here will be executed when the compiled binary is called
   // Print text to the console
    println!("Hello World!");
}

After rustc compiled exe program

 

Use cargo project to create rust

cargo new + 文件名

 Compile and run

cargo run

Compile

cargo build

Published 441 original articles · won praise 188 · views 190 000 +

Guess you like

Origin blog.csdn.net/hxxjxw/article/details/105317065