Curated Rust Articles

117

115+ free articles covering every aspect of Rust, from beginner to advanced.

Showing 117 of 117 articles

Collections & Data Structures(6)

Concurrency & Async(25)

Concurrency & Async

Tokio: A Runtime for Writing Reliable, Asynchronous Applications with Rust

What is Tokio?

Concurrency & Async

Writing Async Code in Rust

Traditional synchronous code executes step-by-step, blocking subsequent operations until the current one finishes. In I/O-bound scenarios…

Concurrency & Async

Sharing Data Between Threads in Rust

Rust is renowned for its emphasis on safety, particularly concurrent safety. One of the challenges in concurrent programming is the safe…

Concurrency & Async

Secure Socket Layer (SSL/TLS) with Rust: A Primer

In this article, we will briefly introduce SSL/TLS and then delve into a working example of setting up a TLS server and client using Rust.

Concurrency & Async

Crafting a Secure Server-to-Server Handshake with Rust & OpenSSL

Hello there, fellow tech enthusiast! 🦀

Concurrency & Async

Building a Function-as-a-Service (FaaS) in Rust

Welcome to this tutorial on building a Function as a Service (FaaS) system using Rust.

Concurrency & Async

Implementing a VPN Server in Rust

Interested in understanding the inner workings of a VPN? Thinking about setting up your own VPN server? Today, we’re taking a…

Concurrency & Async

Building an Event Broker in Rust

In this step-by-step guide, we're diving into the exciting world of building a simple event broker using Rust.

Concurrency & Async

Asynchronous Design Patterns in Rust

Hey there, Rustacean! 🦀

Concurrency & Async

Using Channels in Rust: Why and When?

Hey there! If you’re diving into the world of concurrent programming with Rust, you’ve probably come across the term “channels”. But what…

Concurrency & Async

Working with Asynchronous Streams in Rust

Asynchronous programming can be a bit challenging to grasp, but it’s incredibly useful for improving the performance of programs that deal…

Concurrency & Async

Implementing a DNS Server in Rust

The Domain Name System (DNS) is a foundational aspect of the internet, translating human-readable domain names into IP addresses that…

Concurrency & Async

3 Popular Crates for Working with Containers in Rust

Hey there, Rustaceans! 🦀 Let’s talk containers.

Concurrency & Async

Rust Crates for Working with LLM

In this article, we’ll look at five Rust crates, each offering tools to easily integrate these advanced models into your Rust projects…

Concurrency & Async

Handling multiple asynchronous operations easily with Rust ‘select!’

The select! macro is designed to manage multiple asynchronous operations, allowing a program to wait on several tasks simultaneously and…

Concurrency & Async

Linux Network Namespaces in Rust

Linux Network Namespaces are a feature within the Linux kernel that allows for the isolation and virtualization of network resources. This…

Concurrency & Async

WebAssembly in Rust

Hello, fellow Rustaceans! 🦀

Concurrency & Async

Rust Concurrency in Practice

Concurrency in Rust is based on ownership, types, and borrowing principles, which help manage memory safety without a garbage collector.

Concurrency & Async

Thread Boundaries in Rust

Hi, fellow Rustaceans! 🦀

Concurrency & Async

Raft Cluster in Rust

In today’s article, we will explore how to implement a basic Raft-based consensus system in Rust. 🦀

Concurrency & Async

Implementing a Distributed State Machine in Rust

In this guide, we’ll walk through the creation of a simplified distributed state machine using Rust. 🦀

Concurrency & Async

Low Latency in Rust with Lock-Free Data Structures

In high-performance and distributed systems, latency is a factor that affects overall system responsiveness and throughput. Traditional…

Concurrency & Async

Data-Parallelism in Rust with the Rayon Crate

The Rayon crate is one of the most popular libraries for data-parallelism in Rust , providing a simple and efficient way to execute…

Concurrency & Async

Rust: From Simple Functions to Advanced Abstractions

While many tutorials introduce isolated features, this article takes a holistic, practical approach: we’ll start with a simple example and…

Concurrency & Async

Atomics in Rust: Lock-Free Does Not Mean Free

Atomics are lock-free because they execute entirely in hardware. An atomic read-modify-write is performed by the CPU using instructions…

Cryptography & Blockchain(10)

Cryptography & Blockchain

Exploring Hash functions in Rust: Fowler–Noll–Vo (FNV), SipHash, and beyond

Hash functions are fundamental in numerous computing scenarios, offering ways to represent arbitrary-sized data in fixed-sized values. In…

Cryptography & Blockchain

Implementing zk-SNARK Zero Knowledge Proof in Rust

Imagine holding a sealed envelope containing a secret message. You’re tasked with proving the message’s contents to a friend, but here’s…

Cryptography & Blockchain

Rusting Up Your Own Self-Signed Certificate Generator

If you’ve dipped your toes in the sea of server administration or web development, you’ve likely come across SSL/TLS certificates. They’re…

Cryptography & Blockchain

What is the Noise Protocol

Introduction to the Noise Protocol Framework

Cryptography & Blockchain

Implementing Zero Knowledge Multi-Party Computation in Rust

In this tutorial, we explore the foundational concepts and practical implementation of a simplified zk-rollup-like system in Rust! 🦀

Cryptography & Blockchain

Introduction to Provable Smart Contracts

Provable smart contracts use cryptographic techniques to verify that computations done outside the blockchain are correct. This means that…

Cryptography & Blockchain

Homomorphic Encryption in Rust: Developing Secure Data Analysis

Homomorphic encryption allows computations to be performed on encrypted data without decrypting it first. This property is particularly…

Cryptography & Blockchain

Optimizing Blockchain with Merkelized Abstract Syntax Trees in Rust

The increasing size of blockchain data is a significant challenge for Blockchain performance, data integrity, and privacy. Merkelized…

Cryptography & Blockchain

Building a ZKP system from scratch in Rust

New to zero-knowledge proofs? This is part of my ZK Proof First Steps series, where we’re building a ZKP system from scratch in Rust! 🚀

Cryptography & Blockchain

Building a Threshold Cryptography Library in Rust

Threshold cryptography allows secure splitting of a secret into multiple pieces, called “shares.”

Error Handling(2)

Iterators & Closures(6)

Lifetimes(3)

Macros(3)

Ownership & Borrowing(3)

Patterns & Architecture(1)

Performance & Optimization(4)

Smart Pointers & Memory(5)

Strings & Text(18)

Strings & Text

Working with Strings in Rust: A Definitive Guide

Rust’s approach to strings can be a bit challenging for newcomers to the language or developers familiar with strings in other languages…

Strings & Text

Data Serialization in Rust with Serde

In our digital age, data is the lifeblood of countless applications. But there’s a tiny secret behind the scenes: the art and science of…

Strings & Text

Implementing a Secret Vault in Rust

Hey there, fellow Rustacean!

Strings & Text

Building a P2P Database in Rust

Hey there! If you’ve landed here, you’re probably interested in understanding how distributed systems work, particularly in Rust. Today…

Strings & Text

Understanding String, str, and UTF-8 byte arrays in Rust

Hey there! Ever wonder how we’ve managed to squeeze every language from the intricate scripts of Mandarin to the hieroglyphs of ancient…

Strings & Text

Understanding and Implementing OAuth 2.0 in Rust with oxide-auth

Overview of the OAuth 2.0 Protocol

Strings & Text

Implementing a Firewall in Rust

In this article, we will implement a basic yet fully functional Firewall in Rust! 🦀

Strings & Text

Implementing a Blockchain in Rust

This article provides a step-by-step breakdown of implementing a basic blockchain in Rust, from the initial setup of the block structure…

Strings & Text

Building a VM Instruction Set in Rust

In this comprehensive tutorial, we’ll build a basic Virtual Machine (VM) in Rust. It isn’t just about coding; it’s about understanding the…

Strings & Text

Rust Parsing with Pest and Pest Derive Crates

Pest is a parsing library in Rust that emphasizes simplicity and performance. It uses Parsing Expression Grammar (PEG) as its foundation…

Strings & Text

Database Sharding in Rust

Database sharding is a technique to scale out databases by breaking them into smaller, more manageable pieces called shards. It’s…

Strings & Text

Implementing a Virtual DOM in Rust

In this article, we explore the implementation of a basic virtual DOM for parsing and rendering HTML elements using Rust.

Strings & Text

Implementing a Web3 NFT API in Rust

Hi fellow Rustaceans! 🦀

Strings & Text

Implementing an Arithmetic Circuit Compiler in Rust

Implementing an arithmetic circuit compiler in Rust involves creating a system that can parse a polynomial expression, construct an…

Strings & Text

Implementing a Swap Routing Mechanism in Rust

In this article, we’ll explore how to implement a swap routing mechanism in Rust. We’ll create a simplified version of a decentralized…

Strings & Text

A Memory Dump Analyzer in Rust

Analyzing binary files and memory dumps is a common task in software development, especially in cybersecurity, reverse engineering, and…

Strings & Text

Mastering Pinning in Rust

Pinning in Rust is an essential concept for scenarios where certain values in memory must remain in a fixed location, making it critical…

Strings & Text

Building a VM with Native ZK Proof Generation in Rust

In this article we will build a cryptographic virtual machine (VM) in Rust, inspired by the TinyRAM model, using a reduced instruction set…

Systems Programming(9)

Systems Programming

Rust Embedded Programming: Building Firmware from Scratch

Master embedded Rust development. Build real-world firmware with no_std, embedded-hal, and hardware abstraction for microcontrollers.

Systems Programming

Implementing a Network Traffic Analyzer in Rust

In this article, we’ll delve into the intricacies of working with network traffic using Rust. We’ll explore capturing packets, parsing…

Systems Programming

Implementing an Application Container in Rust

Hey there, Rustaceans! 🦀

Systems Programming

Memory-Mapped I/O in Rust

Memory-mapped I/O is especially helpful when working with big files, loading only the necessary parts into memory. This makes it simpler to…

Systems Programming

Exploring Finite Fields with Rust: Efficient Modular Arithmetic

Finite fields might sound like abstract mathematical concepts, but they are at the heart of many technologies we rely on today, especially…

Systems Programming

Inline assembly in Rust

Inline assembly in Rust, specifically with the asm! macro, allows developers to insert assembly language instructions directly into Rust…

Systems Programming

Playing with Pointer Arithmetic in Rust

In most modern languages, pointer arithmetic is an unusual sight, often left behind in favor of safety and memory management features.

Systems Programming

Dynamic Linking and Memory Relocations in Rust

When you compile source code into object files (such as .o files), the compiler generates machine code along with metadata that indicates…

Systems Programming

Userspace TCP in Rust with DPDK for High-Frequency Trading

Who This Article Is For — And a Warning

Testing(2)

Traits & Generics(9)

Traits & Generics

Understanding Rust's Traits: An Introduction and Examples

What Are Traits?

Traits & Generics

Mastering Generics in Rust: A Hands-on Guide

Generics allow us to define function signatures and data types with placeholder type instead of concrete types. This helps in writing more…

Traits & Generics

Rust Dynamic vs Static Dispatch

Dynamic and static dispatch are two different ways of handling method calls in the Rust programming language. Understanding the differences…

Traits & Generics

Understanding Rust’s Generic Associated Types

Generic Associated Types (GATs) allow for more expressive type relationships in traits, enhancing the language’s capabilities in generic…

Traits & Generics

Rust Traits: from Zero to Hero

Who’s never stumbled upon the tricky “the (…) trait bound is not satisfied” when coding in Rust? We have all been there!

Traits & Generics

Implementing a Mersenne Twister Generator in Rust

The Mersenne Twister is a widely used pseudorandom number generator (PRNG) known for its fast generation and high-quality randomness…

Traits & Generics

The Architecture of Elasticity: Escaping “Generic Soup” with Type Erasure

In the Rust ecosystem, “Zero-Cost Abstractions” is the mantra. We are culturally conditioned to view Generics (<T: Trait>) as the only…

Traits & Generics

Rust’s trait system is one of its most powerful features, enabling zero-cost abstractions and…

This article assumes familiarity with Rust traits, generics, and trait bounds. We’ll explore the pyramid pattern through three complete…

Traits & Generics

Beyond dyn Trait: Advanced Runtime Polymorphism and the Caster Pattern

In Rust, we are evangelists of static analysis. We lean on monomorphization, forcing the compiler to generate specialized assembly for…

Web & Networking(11)

Web & Networking

What’s Zero Trust?

Zero Trust is a security concept based on assuming that all devices, users, and systems inside and outside of an organization’s network are…

Web & Networking

An Introduction to Actix: A Rust Web Framework

Actix is a robust, pragmatic, fast Rust framework for web application building. It utilizes the actor model for managing state and…

Web & Networking

Working with Databases in Rust using Diesel

Hey there, Rustacean! 🦀

Web & Networking

gRPC over HTTP/2 in Rust

If you’re keen on enhancing your networked applications in Rust, you’ve come to the right place. Today, we’re exploring Tonic, Rust’s take…

Web & Networking

Implementing a fully functional API Gateway in Rust: Part 1

Welcome to the first part of our comprehensive series dedicated to constructing a fully functional API Gateway using the Rust programming…

Web & Networking

Mastering Unix System Calls with Rust’s Nix Crate

Ever wanted to tap into the power of Unix system calls using Rust? You’re in the right place. In this article, we’ll delve into the nix…

Web & Networking

Implementing a Fully Functional API Gateway in Rust: Part II — Dynamic Service Registry

Hey there, Rustaceans! 🦀

Web & Networking

Machine Learning in Rust

Hi everyone! In this article, we’re focusing on machine learning in Rust.

Web & Networking

Six Rust Crates for Networking

Today, we’re exploring six popular Rust crates in Rust network programming. From handling low-level socket operations with Socket2 to…

Web & Networking

Decentralized Networking with the libp2p Rust Library

Before we delve into the Rust crate, let’s understand what libp2p is and why it matters. Libp2p is a modular and extensible networking…

Web & Networking

Building a Rust Serverless Platform

In this tutorial, we will build a WebAssembly-powered serverless platform using Rust 🦀. This platform will enable you to register and…

Want hands-on exercises?

Go beyond reading — practice Rust with interactive exercises and AI-powered code review.