Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
rust-analyzer.github.io
...pattern_analysis to fix a panic on mismatched types. #16770 fix panic on float numbers without dots in chain calls (x.1e0). #16779 skip match diagnostics for partially unknown types. #16690 use four-space indentation in macro expansion. #16752 don’t allow destructuring of structs with no public fields. #16766...
Project/Tooling Updates 2024-03-13 ~1 min read
arXiv arxiv.org
...We proved that our lexing and parsing with Lean-specific optimisations match our formalised reading of the SMT-LIB syntax. We measured performance on a representative sample from the 2025 SMT-LIB corpus and found that blazing-smtlib is more than 6 times faster on the geometric mean than previous...
Logic in Computer Science Jan Onderka, Armin Biere, Henrik Böving 2026-10-30 arXiv:2611.00185
rust-analyzer.github.io
...trait or impl declarations. #8510 move cursor position when using item movers. #8536 (first contribution) slightly improve status messages. #8543 (first contribution) fix "Fill match arms" issue with single-element tuples. #8545 fix primitive shadowing with inner items. #8539 do not propose inherent traits in flyimports and import assists. #8546...
Project/Tooling Updates 2021-04-21 ~1 min read
crates.io
...fn main() { let client = client("localhost:18443", "user", "pass").expect("failed to create client"); let request = client.build_request("uptime", None); let response = client.send_request(request).expect("send_request failed"); // For other commands this would be a struct matching the returned json. let result: u64 = response.result().expect("response...
Crate v0.21.0 2026-09-28
fasterthanli.me
...2 Match arms are patterns match arms are also patterns, just like if let: fn print_number(n: Number) { match n { Number { odd: true, value } => println!("Odd number: {}", value), Number { odd: false, value } => println!("Even number: {}", value), } } // this prints the same as before Exhaustive matches A match has to be...
Learn Standard Rust 2020-09-09 ~31 min read
tech.fpcomplete.com
...Then we pattern match on the Result and return a Pid1Error::ChildPidToBig variant if the conversion fails. You may be wondering why we used this pattern matching instead of ?. With the right From implementation, ? would work just fine. However, if you want to include additional context with your error, like...
News & Blog Posts 2019-12-03 ~22 min read
v5.chriskrycho.com
...let an_example = Example::<String, String, String>::RegularWithGeneric { field: "Hello".into() }; match an_example { Example::RegularWithGeneric { field } => println!("The field is {field}"), _ => println!("Skipping"), } And here’s the same in Swift:3 let an_example = Example<String, String, String>.regularWithGeneric( RegularWithGeneric(field: "Hello") ) switch an_example { case .regularWithGeneric(let wrapped...
Observations/Thoughts 2022-07-13 ~2 min read
rust-lang.github.io
...Features: + perf Enables all performance related features + perf-dfa Enables the use of a lazy DFA for matching + perf-inline Enables the use of aggressive inlining inside match routines + perf-literal Enables the use of literal optimizations for speeding up matches + std When enabled, this will cause regex to use...
RFC 3485 RFC 2023-09-09 ~5 min read
www.brandons.me
...f32 }, } impl Shape { pub fn perimeter(&self) -> f32 { match self { Shape::Rectangle { width, height } => width * 2.0 + height * 2.0, Shape::Triangle { side } => side * 3.0, Shape::Circle { radius } => radius * 2.0 * std::f32::consts::PI } } pub fn area(&self) -> f32 { match self { Shape::Rectangle { width, height } => width * height, Shape...
Rust Walkthroughs 2022-01-12 ~10 min read
www.thecodedmessage.com
...Endian) -> [u8; 4] { match endianness { Endian::Little | Endian::Native => { ... } Endian::Big => { ... } } } fn from_endian_bytes([u8: 4], endianness: Endian) -> Self { match endianness { Endian::Little | Endian::Native => { ... } Endian::Big => { ... } } } } This would also allow us to implement the concept of “native” byte order a little differently, and create more names for byte...
Observations/Thoughts 2021-11-24 ~19 min read
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
"Regarding the C++ discussion, when I started programming the only viable oss version control system was cvs. It was horrible, but better than nothing...."

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.