DeveloperBreeze

Rust Programming Tutorials, Guides & Best Practices

Explore 4+ expertly crafted rust tutorials, components, and code examples. Stay productive and build faster with proven implementation strategies and design patterns from DeveloperBreeze.

Rust Cheatsheet

Cheatsheet August 29, 2024
rust

use std::collections::HashMap;

let mut scores = HashMap::new();
scores.insert(String::from("Blue"), 10);
scores.insert(String::from("Yellow"), 50);
for i in &v {
    println!("{}", i);
}

for (key, value) in &scores {
    println!("{}: {}", key, value);
}

Implementing Async Programming in Rust: Exploring async and await

Tutorial August 27, 2024
rust

  • A Future represents a computation that will eventually produce a value.
  • Rust’s Future is lazy, meaning it won’t do anything until it’s awaited.

Rust’s async ecosystem includes powerful libraries like tokio and async-std that provide runtime support for async operations. These libraries offer utilities for managing tasks, handling I/O, and more, making it easier to build concurrent applications.