Easy Tutorial
❮ Cargo Tutorial Rust Enum ❯

Rust Tutorial

Rust is a high-performance, reliable general-purpose programming language. Its efficiency is not only limited to development speed; its execution speed is also commendable, making it a rare language that balances both development and execution efficiency.

Rust was developed by Mozilla and was first released in September 2014. The Rust compiler is a free open-source software under the dual licensing of the MIT License and Apache License 2.0. As of January 2020, the latest compiler version is 1.41.0.

Rust official online tools: https://play.rust-lang.org/

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


Features of Rust


Applications of Rust

Rust can be used for developing:


Who Should Read This Tutorial?

This tutorial assumes that readers already have a basic understanding of programming. Therefore, if you read this tutorial, you should have some familiarity with basic programming concepts (preferably having some knowledge of C/C++ or JavaScript).

First Rust Program

Rust language code files have the extension .rs, such as tutorialpro.rs.

Example: tutorialpro.rs File

fn main() {
    println!("Hello World!");
}

Compile the tutorialpro.rs file using the rustc command:

$ rustc tutorialpro.rs   # Compile tutorialpro.rs file

After compilation, the tutorialpro executable file is generated:

$ ./tutorialpro    # Execute tutorialpro
Hello World!

Reference Links

❮ Cargo Tutorial Rust Enum ❯