Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
gitlab.com
...The essential part of security in cookies and localStorage is the idea of an "origin", which is supposed to match roughly with what people intuitively think of as a website, so each "website" gets its own local storage: On the regular web, an origin is an effective Top-Level Domain...
Project/Tooling Updates 2022-01-26 ~2 min read
nitschinger.at
...We can now utilize pattern matching to distinguish between success and error, and if it is successful print out the length of the Vector: 1 2 3 4 match cores { Ok(c) => println!("There are {} cores on this machine.", c.len()), Err(e) => panic!(format!("Could not load cores because...
News & Blog Posts 2016-01-11 ~11 min read
rust-analyzer.github.io
...language clients in Restart server. #12850 fix error tooltip message for VSCode status bar item. #12851 don’t add braces to 'if' completion in match guard position. #12832 don’t try to implement default members. #12861 include receiver in struct field autocomplete. #12807 add basic support for completion item details...
Project/Tooling Updates 2022-07-27 ~1 min read
www.amazon.science
...A "program verifier" takes in a formal mathematical specification of how your code should behave and mechanically checks that your code matches that specification for all possible inputs.For example, your code might implement an optimized binary-search algorithm to look for a particular value within a sorted array. The...
Observations/Thoughts 2026-09-16 ~7 min read
aibodh.com
...What’s matches!? The matches! macro checks if a value matches a pattern. matches!(self, CharacterState::Idle) returns true if self is Idle, false otherwise. The | means “or” so matches!(self, CharacterState::Walking | CharacterState::Running) checks if it’s either Walking or Running. Animation Refactoring Now we’ll refactor animation...
Rust Walkthroughs 2025-12-17 ~61 min read
alexliesenfeld.com
...None, path_matches: None, method: Some("POST"), headers: Some({"Authorization": "token TOKEN", "Content-Type": "application/json"}), header_exists: None, body: None, json_body: None, json_body_includes: None, body_contains: None, body_matches: None, query_param_exists: None, query_param: None, matchers: None }, response: MockServerHttpResponse { status: 201, headers: None, body...
Learn More Rust 2020-09-16 ~11 min read
miren.dev
...Add another variant tomorrow and every match in the codebase that doesn’t cover the new case lights up red at compile time. I can stop writing tests for my own forgetfulness. The ? operator is kind of a revelation to an if err != nil-addled brain like mine. One character...
Observations/Thoughts 2026-04-29 ~5 min read
rust-analyzer.github.io
...assist. #8830 implement built-in concat_idents! macro. #8831 apply async semantic token modifier to the async/await keywords. #8840 fix false positive "Missing match arm" when a tuple pattern is shorter than scrutinee type. #8845 add default type parameters on "Generate Default from new function". #8848 attach comments to...
Project/Tooling Updates 2021-05-19 ~1 min read
rust-lang.github.io
...If any of the strings mentioned in metabuild do not match one of the build-dependencies, Cargo should produce an error (before attempting to generate and compile a build.rs script). However, if a string matches a conditional build-dependency, such as one conditional on a feature or target, then...
RFC 2196 RFC 2017-10-31 ~5 min read
rust-analyzer.github.io
#11107 (first contribution) fix generic type substitution when implementing trait with associated type. #11061 support Move if to guard on if-else chains. #11178 keep block modifiers in Replace match with if let. #11184 pass through mutable parameter references when extracting a function. #11195 pass through reference modifiers when extracting...
Project/Tooling Updates 2022-01-12 ~1 min read
rust.code-maven.com
...path, match Setting status to 404 page not found. with_status_code, with_header, path. Tiny HTTP redirect URL. with_header, Header, HeaderField, Request, Response. Gabor Szabo, the author of the Rust Maven web site maintains several Open source projects in Rust and while he still feels he has tons...
Rust Walkthroughs 2023-12-20 ~1 min read
xion.io
...Option<String> ) -> Box<Stream<Item=Item, Error=Box<Error>>> { let client = Client::new(handle); Box::new(stream::unfold(after, move |cont_token| { let url = match cont_token { Some(ct) => format!("{}?after={}", URL, ct), None => return None, }; let req = Request::new(Method::Get, url.parse().unwrap()); Some(client.request(req).from...
News & Blog Posts 2018-01-30 ~11 min read
kerkour.com
...handling job({}): {}", job_id, &err); queue.fail_job(job_id).await } }; match res { Ok(_) => {} Err(err) => { println!("run_worker: deleting / failing job: {}", &err); } } }) .await; // sleep not to overload our database tokio::time::sleep(Duration::from_millis(125)).await; } } async fn handle_job(job: Job) -> Result<(), crate::Error> { match job.message...
Rust Walkthroughs 2021-09-08 ~6 min read
wiredforge.com
...Instead // of having a series of `if`s, we instead use a single `match` statement match v { // if 1, we have a special case, we can return the `Ok` // value with the maximum page size 1 => Ok(PageSize(65_536u32)), // If we find 0 or 2-511, we found and...
Learn Standard Rust 2020-09-16 ~16 min read
dev.to
...impl AgentError { pub fn is_retryable(&self) -> bool { matches!( self, Self::Network(_) | Self::Provider { status: Some(500..=599), .. } ) } pub fn is_client_error(&self) -> bool { matches!(self, Self::Provider { status: Some(s), .. } if *s >= 400 && *s < 500) } } Enter fullscreen mode Exit fullscreen mode This was one of the things Rust...
Project/Tooling Updates 2026-03-11 ~5 min read
www.coralbark.net
...The first version of my Python script just tried to match a regular expression against each line. It took over 4 minutes on my sample data, so I made a few tweaks (e.g. I noticed I was compiling the regular expression for each line). It still took over 4...
Observations/Thoughts 2020-10-21 ~4 min read
rust-analyzer.github.io
#9123 (first contribution) add Gentoo installation instructions. #9091 fix opening single files. #8717, #9105 update match checking algorithm. #9090 fix type inference with arbitrary self types. #9130 make prefix/suffix parameter inlay hint hiding heuristic is more strict. #9079 don’t take the parent kind of trailing attributes in attribute...
Project/Tooling Updates 2021-06-09 ~1 min read
xd009642.github.io Archived: primary link replaced with an archive on 2026-09-12T17:24:53.882Z (UTC; replacement date, not snapshot date)
...Error, { let mut start = None; while let Some(Ok(msg)) = receiver.next().await { if let Ok(text) = msg.into_text() { match serde_json::from_str::<RequestMessage>(&text) { Ok(RequestMessage::Start(start_msg)) => { info!(start=?start, "Initialising streamer"); start = Some(start_msg); break; } Ok(RequestMessage::Stop(_)) => { warn!("Unexpected stop received as...
Rust Walkthroughs 2025-01-22 ~11 min read
git-cliff.org
...See #555 for an example. ✂️ Trim Text​ We changed the commit parser behavior to always trim the text (commit message, body, etc.) before matching it with a regex. This means that you will be able to use $ in the regex for matching until the end. For example: [git]commit_parsers...
Project/Tooling Updates 2024-04-03 ~2 min read
rust-analyzer.github.io
#4065, #4128 complete unqualified enum variants #4105 code completion for attributes. #3954 we now pre-select completion variant if it matches the expected type. #4006 syntax highlighting for format strings #4069, #4070, #4158 improve documentation. #4098 add setup instructions for YouCompleteMe. #4082 implement rust-analyzer --help. #4090 fix naming of...
News & Blog Posts 2020-05-05 ~1 min read
"I think this is the wrong decision, and I wish the lang team had stabilized the Late type instead."
— Better Late than Never.

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.