Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Rust Tutorial

Rust Tutorial

Rust is a high-performance compiled programming language led by Mozilla, following the design principles of "safety, concurrency, and practicality".

The Rust language was developed by Mozilla and first released in 2010.

Rust supports multiple programming paradigms, including functional, concurrent, procedural, and object-oriented styles.

Rust is astonishingly fast and extremely memory-efficient. With no runtime or garbage collection, it is capable of handling services with particularly high performance requirements, can run on embedded devices, and can easily integrate with other languages.

The content of the Rust series of articles is Sobin collected and organized by.


Features of the Rust Language


Applications of Rust

The Rust language can be used to develop:


Who should read this tutorial?

This tutorial assumes readers have already mastered basic programming knowledge, so if you read this tutorial, you need to have some understanding of basic programming knowledge (preferably already familiar with C/C++ or JavaScript programming languages).

The first Rust program

Rust language code files use the extension .rs, e.g. runoob.rs。

Example: runoob.rs file

fn

main

(

)

{

    println

!

(

"Hello World!"

)

;

}

Run Example »

Compile the runoob.rs file using the rustc command:

$ rustc runoob.rs   # 编译 runoob.rs 文件

After compilation, an runoob executable file is generated:

$ ./runoob    # 执行 runoob
Hello World!

Reference Links