Table of Content

  1. Theoretical Concepts
  2. Core Concepts
  3. Advanced Concepts

Commonly Used Commands

# Create new Rust Project
cargo new [--vcs none] <project-name>
 
# Install dependencies/compile code
cargo build
 
# Compiles and runs code
cargo run
 
# Add Dependency to Project
cargo add <crate-name>
 
# Install a Rust Binary
cargo install <binary-name>

Best Practices & Coding Conventions

  • Variable, Function, Method and Module names should follow snake case
  • Enums, Traits and Types should be written in Pascal Case
  • Constant names should be written in All Caps
  • When using functions it is idiomatic in Rust to bring the parent module into scope