Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
fosdem.org
...Some of these are fundamental novelties, and others are optimizations matching the changing performance landscape in modern hardware. In this talk we present Glidesort, a general purpose in-memory stable comparison sort. It is fully adaptive to both pre-sorted runs in the data similar to Timsort, and low-cardinality...
FOSDEM 2023 2023-02-08 ~1 min read
joonaa.dev
...Friction should also be higher, as the current behavior is overly “slidey” and does not match the average real-world material well. Avian 0.2 changes the default coefficient of restitution to 0.0, and the default coefficients of friction to 0.5, matching Rapier. To guide the new defaults...
Project/Tooling Updates 2024-12-25 ~22 min read
justinpombrio.net
...loop { let chunk = match stack.pop() { Some(chunk) => chunk, None => match chunks.split_last() { None => return true, Some((chunk, more_chunks)) => { chunks = more_chunks; *chunk } }, }; Then the body of the loop processes the chunk to check whether it fits on the line: match chunk.notation.0.as_ref() { Newline => return...
Miscellaneous 2024-02-28 ~22 min read
doc.rust-lang.org
...Result<i32>) { match result { Ok(n) => println!("The first doubled is {}", n), Err(e) => println!("Error: {}", e), } } fn main() { let numbers = vec!["42", "93", "18"]; let empty = vec![]; let strings = vec!["tofu", "93", "18"]; print(double_first(numbers)); print(double_first(empty)); print(double_first(strings)); } This is actually fairly...
Rust by Example Book 2024-01-01 ~1 min read
hagsteel.com
...DeserializeOwned>(buf: &mut BytesMut) -> Option<T> { let p = buf.iter().position(|b| b == &b'\n'); match p { None => None, Some(n) => { let res = serde_json::from_slice(&buf.split_to(n).freeze()).ok(); buf.advance(1); // Skip the newline char buf.reserve(BUFFER_SIZE); // Make sure the buffer can hold...
News & Blog Posts 2019-04-16 ~16 min read
oluseun.dev
...let stream = stream! { loop { match consumer.recv().await { Ok(Some(payload)) => { yield Ok( Event::default() .event("broadcast") .data(payload), ); } Ok(None) => break, Err(error) => { tracing::warn!("recv error: {:?}", error); tokio::time::sleep(Duration::from_secs(1)).await; } } } }; Axum keeps the connection alive while the stream waits: Sse::new(stream).keep...
Rust Walkthroughs 2026-09-30 ~7 min read
rust-osdev.com
...Rust 1.96.0 Stabilizes new core::range types and core::assert_matches!/core::debug_assert_matches!. WebAssembly targets now fail on undefined linker symbols by default instead of implicitly treating them as "env" imports. Includes Cargo fixes for CVE-2026-5223 and CVE-2026-5222 for users of third...
Newsletters 2026-06-10 ~4 min read
rust-lang.github.io
...The structs can be constructed, destructed, and participate in pattern matches. Private fields on tuple structs will prevent the following behaviors: • Private fields cannot be bound in patterns (both in irrefutable and refutable contexts, i.e. let and match statements). • Private fields cannot be specified outside of the defining module...
RFC 1 RFC 2014-03-11 ~5 min read
vinted.engineering
...Notice that it derives the Deserialize trait, meaning, it can be deserialized from JSON warp::post() filter to accept only POST requests warp::body::json() to read JSON payload .and(..) filter to chain them together and ensure that a successful request must match all of the required filters use serde...
Rust Walkthroughs 2021-12-15 ~7 min read
tokio.rs
...Nested routers with fallbacks Router::nest allows you to send all requests with a matching prefix to some other router or service. However in 0.5 it wasn't possible for nested routers to have their own fallbacks. In 0.6 that now works: use axum::{Router, Json, http::StatusCode...
Project/Tooling Updates 2022-08-24 ~4 min read
www.lpalmieri.com
...Expected range of matching incoming requests: == 1 Number of matched incoming requests: 0 Implementation Strategy We have more than enough tests to give us feedback now - let's kick off the implementation work! We will start with a naive approach: Retrieve the newsletter issue details from the body of the...
Rust Walkthroughs 2021-08-04 ~26 min read
rust-trends.com
...exact matches instead of semantic approximations, automatic .gitignore respect, and predictable behavior. You know exactly what it's searching.A Hacker News commenter pointed out this is still technically RAG, just using information retrieval techniques that have existed for decades. Sometimes proven approaches beat newer alternatives.I wrote a deeper...
Newsletters 2026-02-04 ~4 min read
belkadan.com
...But to take a whole block of code, and replace everything that looks like a message lock in that block…well, it might be possible with pattern-matching and quite a bit of recursion, but it’s going to be a lot easier to use procedural macros, a Rust macro...
Learn More Rust 2020-09-04 ~16 min read
erickt.github.io
...Token) -> Result<Foo, E> { try!(d.expect_struct_start(token, "Foo")); let mut a = None; let mut b = None; let mut c = None; static FIELDS: &'static [&'static str] = &["a", "b", "c"]; loop { let idx = match try!(d.expect_struct_field_or_end(FIELDS)) { Some(idx) => idx, None => { break; } }; match idx...
Blog Posts 2014-12-15 ~13 min read
sunshowers.io
...Some links:Video of the talk on YouTube.Slides on Google Slides.Repository with links and notes on GitHub.Coverage on Linux Weekly News.Introduction#Let’s start with a simple example – you decide to read from a channel in a loop and gather a bunch of messages:loop { match...
Rust Walkthroughs 2025-10-08 ~19 min read
mbuffett.com
...It’s just unfortunate that I have to resort to “old-school” error-handling when I’m in a filter:new_house_uuids = new_house_uuids .into_iter() .filter(|new_house_uuid| { let existing_owner = db.investment_users.get(new_house_uuid); match existing_owner { Ok(Some(_)) | Err(_) => false, Ok...
Call for Blog Posts 2020-09-23 ~4 min read
francismurillo.github.io
...fn next(&mut self) -> Option<Self::Item> { loop { match *self.current_tree { None => match self.prev_nodes.pop() { None => { return None; } Some(ref prev_node) => { self.current_tree = &prev_node.right; return Some(&prev_node.value); } }, Some(ref current_node) => { if current_node.left.is_some() { self.prev_nodes.push...
News & Blog Posts 2019-08-06 ~46 min read
contextgeneric.dev
...MatchWithValueHandlers – matches and dispatches on an owned input Value. MatchWithValueHandlersRef – matches and dispatches on a borrowed input &Value. MatchWithValueHandlersMut – matches and dispatches on a mutably borrowed input &mut Value. These dispatchers are compatible with both the owned and borrowed variants of the handler traits, such as Computer and ComputerRef. Within...
Project/Tooling Updates 2025-10-15 ~23 min read
bytecodealliance.org
...Many of the projects that we set in motion in 2021 and planned to finish in 2022 – most significantly, a new register allocator, and ISLE, a pattern-matching DSL that has come to serve as the core of our backends – have come to fruition, entering production and improving compiler output...
Project/Tooling Updates 2022-12-21 ~17 min read
blog.knoldus.com
...nix = "0.18.0" Now add the below code in main.rs use nix::sys::wait::wait; use nix::unistd::ForkResult::{Child, Parent}; use nix::unistd::{fork, getpid, getppid}; fn main() { let pid = fork(); match pid.expect("Fork Failed: Unable to create child process!") { Child => println!( "Hello from child process...
Learn More Rust 2020-09-09 ~1 min read

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.