Cookin' with Rust

This Rust Cookbook is a collection of simple examples that demonstrate good practices to accomplish common programming tasks, using the crates of the Rust ecosystem.

Read more about Rust Cookbook, including tips for how to read the book, how to use the examples, and notes on conventions.

Contributing

This project is intended to be easy for new Rust programmers to contribute to, and an easy way to get involved with the Rust community. It needs and welcomes help. For details see CONTRIBUTING.md.

Algorithms

Command Line

Compression

Concurrency

Cryptography

Data Structures

Database

Date and Time

Development Tools

Debugging

Versioning

Build Time

Encoding

File System

Hardware Support

RecipeCratesCategories
Check number of logical cpu coresnum_cpus-badgecat-hardware-support-badge

Memory Management

RecipeCratesCategories
Declare lazily evaluated constantlazy_static-badgecat-caching-badge cat-rust-patterns-badge

Networking

RecipeCratesCategories
Listen on unused port TCP/IPstd-badgecat-net-badge

Operating System

Science

Mathematics

Text Processing

Web Programming

Scraping Web Pages

Uniform Resource Locations (URL)

Media Types (MIME)

Clients

Web Authentication

RecipeCratesCategories
Basic Authenticationreqwest-badgecat-net-badge