Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
rust-lang-nursery.github.io
Configuration | Recipe | Crates | Categories | |--------|--------|------------| | Layer defaults, a file, and environment variables | [![config-badge]][config] | [![cat-config-badge]][cat-config] | | Merge multiple providers with figment |...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Layer defaults, a file, and environment variables [![config-badge]][config] [![cat-config-badge]][cat-config] Most applications resolve their configuration from several places: defaults that ship with the binary, a config file an operator e...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Merge multiple providers with figment [![figment-badge]][figment] [![cat-config-badge]][cat-config] [figment][figment] assembles configuration from independent providers. A provider can be a TOML, JSON, or YAML file, or a set of environment...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Store per-user configuration with confy [![confy-badge]][confy] [![cat-config-badge]][cat-config] A desktop or CLI program that remembers a user's preferences should write them to the platform's standard config location, not next to the bin...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Reload configuration when the file changes [![config-badge]][config] [![notify-badge]][notify] [![cat-config-badge]][cat-config] [![cat-filesystem-badge]][cat-filesystem] A long-running service can pick up edits to its config file without a...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Multimedia | Recipe | Crates | Categories | |--------|--------|------------| | Resize and re-encode an image | [![image-badge]][image] | [![cat-multimedia-badge]][cat-multimedia] | | Detect an image format from its bytes | [![image-badge]][...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Resize and re-encode an image [![image-badge]][image] [![cat-multimedia-badge]][cat-multimedia] Serving a small preview of a large upload means decoding the original, shrinking it, and writing it back in a web-friendly format. image::open r...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Decode audio samples from a file [![symphonia-badge]][symphonia] [![cat-multimedia-badge]][cat-multimedia] Measuring a clip's length or feeding it to an analyzer means decoding its samples, whatever the container. [symphonia][symphonia] pro...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Clap Derive Parser Macro Clap's Parser derive macro is the most common way to define a command line interface in Rust. Instead of manually parsing std::env::args(), you describe the shape of your arguments as a struct, and Clap generates al...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Clap Subcommands Many command line tools split their functionality into subcommands. Familiar tool commands include git commit and cargo build, where the first word selects a specific action with its own set of arguments. Clap supports this...
The Rust Cookbook Book 2024-01-01 ~2 min read
rust-lang-nursery.github.io
Clap Argument Validation Not every argument can be trusted simply because it parses into the right type. A string might convert fine into a PathBuf or a number, while still being meaningless in context, such as a percentage over 100 or a pa...
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Working with Gzip
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Working with Bzip2
The Rust Cookbook Book 2024-01-01 ~1 min read
rust-lang-nursery.github.io
Zero-Copy Deserialization
The Rust Cookbook Book 2024-01-01 ~1 min read
"I love Rust, so I was already biased to be positive about the Rust for Linux project, even before dabbling with it myself. I'm genuinely surprised to ..."

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.