Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
Configure Logging
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Tracing tracing is a framework for instrumenting Rust programs to collect structured, event-based diagnostic information. It is alternative to the older log crate and has adapters to be backwards compatible. To enable tracing in your applic...
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Versioning
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Build Time Tooling This section covers "build-time" tooling, or code that is run prior to compiling a crate's source code. Conventionally, build-time code lives in a build.rs file and is commonly referred to as a "build script". Common use...
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Encoding | Recipe | Crates | Categories | |--------|--------|------------| | Percent-encode a string | [![percent-encoding-badge]][url] | [![cat-encoding-badge]][cat-encoding] | | Encode a string as application/x-www-form-urlencoded | [![ur...
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Character Sets
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
CSV processing
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Structured Data
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Error Handling | Recipe | Crates | Categories | |--------|--------|------------| | Composing errors with an enum | [![thiserror-badge]][thiserror] | [![cat-rust-patterns-badge]][cat-rust-patterns] | | Dynamic errors with anyhow | [![anyhow-...
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Error Handling
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
File System | Recipe | Crates | Categories | |--------|--------|------------| | Read a whole file into a string | [![std-badge]][std] [![tempfile-badge]][tempfile] | [![cat-filesystem-badge]][cat-filesystem] | | Write a string to a file | [...
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Read & Write
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Directory Traversal
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Hardware Support | Recipe | Crates | Categories | |--------|--------|------------| | Check number of logical cpu cores | [![num_cpus-badge]][num_cpus] | [![cat-hardware-support-badge]][cat-hardware-support] |
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Processor
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Memory Management | Recipe | Crates | Categories | |--------|--------|------------| | Declare lazily evaluated constant | [![lazy_static-badge]][lazy_static] | [![cat-caching-badge]][cat-caching] [![cat-rust-patterns-badge]][cat-rust-patter...
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Constants
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
Networking | Recipe | Crates | Categories | |--------|--------|------------| | Listen on unused port TCP/IP | [![std-badge]][std] | [![cat-net-badge]][cat-net] | | TCP echo server | [![std-badge]][std] | [![cat-net-badge]][cat-net] | | TCP...
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
TCP
TCP
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
UDP
UDP
rust-lang-nursery.github.io The Rust Cookbook Book 2024-01-01 ~1 min read
"The moment I froze Doctest with a loop in a comment."

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, and research. These operators give you finer control — click an example to try it.

Find pages containing all your words. Pages where the words appear together rank higher.
Quote part of your query to keep those words together as an exact phrase within a larger search.
Wrap the whole query in quotes for a verbatim search that matches text exactly, punctuation and all — perfect for Rust syntax. Needs at least 3 characters.
Limit results to a single site. Works on its own () too. One site: per search.

Use the tabs and filters above the results to narrow by content type, publication year, and sort order.