Skip to content

Rust

Updated
17 Sept 2026
1 min read
2 sections
Page 1 of 18
Rust

Rust

Rust is a general-purpose programming language emphasizing performance, type safety, and concurrency. It enforces memory safety, meaning that all references point to valid memory, without a garbage collector.

https://www.rust-lang.org/

Cargo

Cargo is the Rust package manager. Cargo downloads your Rust package’s dependencies, compiles your packages, makes distributable packages, and uploads them to crates.io, the Rust community’s package registry.

  • Creating New Project
powershell
$ cargo new <project_name>
  • Adding Dependency
powershell
$ cargo add <dependency>
  • Checking for Errors
powershell
$ cargo check

Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.01s
  • Building Project
powershell
$ cargo build

Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.05s
  • Running Project
powershell
$ cargo run

Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.01s
Running `target\debug\hello_world.exe`
    
Hello, world!

In this section

  1. [01]Introduction→
  2. [02]Traits→
  3. [03]Lifetimes→
  4. [04]Testing→
  5. [05]Mini Grep CLI→
  6. [06]Closures→
  7. [07]Iterators→
  8. [08]Smart Pointer→
  9. [09]Concurrency→
  10. [10]Programming Concepts→
  11. [11]Memory Management→
  12. [12]Structs→
  13. [13]Enums→
  14. [14]Module System→
  15. [15]Vectors→
  16. [16]Error Handling→
  17. [17]Generics→