Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
rust-lang.github.io
...The specific declarative syntax using pattern matching and templating is often referred to as 'macros by example'. 'Pattern macro' has been suggested as an alternative for 'declarative macro'. Drawbacks There is a risk that macro_rules! is good enough for most users and there is low adoption of the new...
RFC 1584 RFC 2016-04-17 ~3 min read
digitalnk.com
...The first character I tried, ", was a match but nothing else matched. And in any case the table generated is way too small to handle Korean and Chinese characters. The decompiled pseudo-C code does not seem to depart from the assembly source either. I can’t quite explain all...
News & Blog Posts 2020-05-12 ~48 min read
dev.to
...SignInInput) -> Result<String, Error> { let maybe_user = repository::get_user(&input.username, &get_conn_from_ctx(ctx)).ok(); if let Some(user) = maybe_user { if let Ok(matching) = verify_password(&user.hash, &input.password) { if matching { let role = AuthRole::from_str(user.role.as_str()).expect("Can't convert &str...
Rust Walkthroughs 2020-12-30 ~20 min read
noos.blog
...Do the embeddings match? Critical Instructions: Are the key verbs and constraints still there? Structural Integrity: Did we break your JSON schema? 3. LLM-as-a-Judge For the ultimate test, you can run an automated evaluation where a judge model (like Claude 3 Opus) compares the outputs of your...
Miscellaneous 2026-02-25 ~3 min read
anto.pt
...i64) -> Markup { // You can still put some logic here, if you want. // However, Maud templating conveniently supports if, // let, match, and loops. html! { @if (count < 0) { p { "You cannot have negative nuts" } } else { h1 { (count) " nuts" } } } } If Maud is just a fancier format!(), why the function now returns Markup instead...
Rust Walkthroughs 2023-08-09 ~12 min read
smallcultfollowing.com
...u32) -> Pin<Box<impl Future<Output = u32>>> { Box::pin(async move { match a { 0 => 1, 1 => 2, _ => fibonacci(a-1).await + fibonacci(a-2).await } }) } But wouldn’t it be nice if we could request this directly?box async fn fibonacci(a: u32) -> u32 { match a { 0 => 1, 1 => 2...
Observations/Thoughts 2025-03-26 ~21 min read
www.hoverbear.org
...String, }, } Right now most of the data types I'm using are compound data enums, allowing for strongly typed, encapsulated data that is easy to work with via match statements. I am not sure if this is the right way to go about things, and I think that there can...
Blog Posts 2015-01-26 ~3 min read
locka99.gitbooks.io
...No results matching ""
News & Blog Posts 2017-01-31 ~3 min read
paulbutler.org
...We can match it to any value, and we can’t get the value back. Another place we see this is destructuring tuples where we only care about some of the values: fn main() { let my_tuple = (4, "foo", false); let (num, _, truthy) = my_tuple; println!("{} {}", num, truthy); } You often...
Rust Walkthroughs 2022-02-23 ~8 min read
astropad.com
...Flexible work schedulesCompetitive pay + equity401k with matching up to 4%Coworking space reimbursement stipendHealth, dental and vision insurance8 weeks paid parental leave for all new parents3 weeks vacationChallenging and creative workHigh impact work with significant responsibility
Rust Jobs 2021-12-22 ~3 min read
not-matthias.github.io
...Pretty easy, right?#[macro_export] macro_rules! kernel_dbg { () => { $crate::println!("[{}:{}]", file!(), line!()); }; ($val:expr) => { // Use of `match` here is intentional because it affects the lifetimes // of temporaries - https://stackoverflow.com/a/48732525/1063961 match $val { tmp => { $crate::println!("[{}:{}] {} = {:#?}", file!(), line!(), stringify!($val), &tmp); tmp } } }; // Trailing comma with single argument...
Learn More Rust 2020-08-26 ~12 min read
www.superperfundo.dev
...Let’s look at the implementation of intersect in sections. // Hardcoded unit sphere let sphere_center = Tuple::point(0.0, 0.0, 0.0); // Transform the ray instead of the sphere - let the sphere stay at unit let transform_inverse = match sphere.transform.inverse() { Some(transform_inverse) => transform_inverse, None...
Rust Walkthroughs 2023-04-12 ~12 min read
gitlab.com
...let mut vec = Vec::new(); vec.push(true); vec.push(false); vec.push(true); vec.push(false); vec.push(false); vec.push(false); vec.iter().cycle().for_each(|v| { match v { true => row.set_high().expect("Failed to set row high"), false => row.set_low().expect("Failed to set row...
Rust Walkthroughs 2023-03-29 ~7 min read
aaron404.github.io
...The counts for each digit are:Digit01234567Count40523861I slapped this into a match statement and boom! Optical character recognition!// Map the discriminant values to the digits they represent fn count_to_digit(count: usize) -> Result<u8> { Ok(match count { 4 => 0u8, 0 => 1, 5 => 2, 2 => 3, 3 => 4, 8 => 5...
Rust Walkthroughs 2024-07-31 ~26 min read
dygalo.dev
...Vec<&str>) -> ValidationResult { match (self, instance) { // ... Compare `instance` type with expected type _ => Err(ValidationError::new( format!("{instance} is not of type '{self}'"), // Convert path to an iterator path.into_iter(), )), } } } The ValidationError struct now stores this path: struct ValidationError { message: String, /// Error location within the input instance. location: Vec<String...
Observations/Thoughts 2024-05-15 ~17 min read
gfx-rs.github.io
...We removed the old Vulkan-like model, but also upgraded the new model to match “VK_KHR_imageless_framebuffer”, getting the best of both worlds. It maps to the backends even better than before, and we can expose it directly in gfx-portability now. There is also a lot of...
Project/Tooling Updates 2021-02-03 ~3 min read
tonbo.io
...This matches how serverless systems actually work. Tonbo makes concurrent reads and writes predictable on shared storage Object storage does not provide database style coordination by default. To make concurrent reads and writes predictable, we built fusio-manifest on top of conditional PUTs in object storage, urning critical metadata updates...
Project/Tooling Updates 2024-08-14 ~3 min read
deislabs.io
...Our Mission At its core, Kubernetes relies on declarative (mostly immutable) manifests, and controllers which run reconciliation loops to drive cluster state to match this configuration. Kubelet is no exception to this, with its focus being indivisible units of work, or Pods. Kubelet simply monitors for changes to Pods that...
Learn More Rust 2020-09-30 ~17 min read
r2cn.dev
...users describe the desired state of their workloads in YAML manifests, and Kubernetes continuously reconciles the actual cluster state to match it. Strengths: This model is highly reliable in production, offering features such as rolling updates, automatic restarts, resource limits, and sophisticated scheduling across nodes. It’s ideal for large...
Observations/Thoughts 2025-08-20 ~12 min read
alphakhaw.com
...make everything match the longest sample in the batch and move on. It works, but part of every step is now spent processing tokens that do not contribute anything. NVIDIA’s NeMo docs put the waste at 50–70% of computation on padding tokens for skewed length distributions.NVIDIA NeMo...
Project/Tooling Updates 2026-04-01 ~7 min read
"Of the last 150 merged PRs to Bun, **108 are memory-safety-adjacent** — missed cleanup on an error path, use-after-free, uninitialized reads, out-of..."

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.