Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
rust-lang-nursery.github.io
Configure Logging
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Versioning
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Character Sets
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
CSV processing
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Structured Data
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
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-...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Error Handling
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
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 | [...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Read & Write
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Directory Traversal
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Hardware Support | Recipe | Crates | Categories | |--------|--------|------------| | Check number of logical cpu cores | [![num_cpus-badge]][num_cpus] | [![cat-hardware-support-badge]][cat-hardware-support] |
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Processor
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Constants
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
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...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
TCP
TCP
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
UDP
UDP
The Rust Cookbook Book 2024-01-01 ~1 min read
"I did manage to get this compile in the end - does anyone else find that the process of asking the question well on a public forum organizes their tho..."

Search tips

Type anything to search across articles, videos (including conference talks), podcasts, research, crates, and Rust API documentation. 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.
Put ! first to open the top result immediately. Quote the whole query for a literal leading bang, as in '!Send'. Bangs elsewhere, such as println!, stay literal. Browser and launcher shortcuts can invoke this directly. See search integrations.
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.