Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
assethoard.com
...let variant = match lexer::tokenize(animations_text) { Ok(toks) => match parser::parse_variant(toks) { Ok(v) => v, Err(e) => { if format == 2 { log::debug!( "parse_sprite_frames: format=2 graceful degradation (parse): {}", e ); return Ok(SpriteFramesData::empty()); } return Err(TresParseError::BodyParseError(format!( "failed to parse animations Variant: {}", e ))); } }, ... };Unit tests...
Rust Walkthroughs 2026-05-20 ~16 min read
embed.rs
...Then, it is time to decode the assembly instruction and check if it is a bkpt: # get the current frame and inferior frame = gdb.selected_frame() inf = gdb.selected_inferior() # retrieve instruction ins = frame.architecture().disassemble(frame.pc())[0] m = re.match(r'^bkpt\s+((?:0x)?[0-9a-f]+)$', ins...
Blog Posts 2016-10-25 ~10 min read
arxiv.org
...Notably, none of the automated techniques consistently match or exceed human-written translations across all quality dimensions, yet even human-written Rust code exhibits persistent internal quality issues such as readability and non-idiomatic patterns. Together, these findings show that translation quality remains a multi-dimensional challenge, requiring systematic evaluation...
Research 2026-02-04 ~1 min read
arXiv arxiv.org
...In this study, we have formally studied the discussions on three popular new languages introduced after the inception of SO (2008) and match those with the relevant activities in GitHub whenever appropriate. For that purpose, we have mined 4,17,82,536 questions and answers from SO and 7,846...
Software Engineering Partha Chakraborty, Rifat Shahriyar, Anindya Iqbal et al. 2021-05-04 arXiv:2105.01709
askama.rs
...templates` dir in the crate root struct HelloTemplate<'a> { // the name of the struct can be anything name: &'a str, // the field name should match the variable name // in your template } fn main() { let hello = HelloTemplate { name: "world" }; // instantiate your struct println!("{}", hello.render().unwrap()); // then render it. } You should...
Crate v0.16.1 2026-09-04
recursion.wtf
...F) -> Self::To { match self { Expr::Add(a, b) => Expr::Add(f(a), f(b)), Expr::Sub(a, b) => Expr::Sub(f(a), f(b)), Expr::Mul(a, b) => Expr::Mul(f(a), f(b)), Expr::LiteralInt(x) => Expr::LiteralInt(x), } } } Some boilerplate, nothing too complex. Implementing the Collapse and...
Rust Walkthroughs 2022-08-03 ~7 min read
fitzgeraldnick.com
...However, it doesn’t always match libiberty’s C++ demangler’s formatting character-for-character. I’m currently in the process of getting all of libiberty’s C++ demangling tests passing. Additionally, I’ve been running American Fuzzy Lop (with afl.rs) on cpp_demangle overnight. It found a panic...
News & Blog Posts 2017-02-28 ~7 min read
www.youtube.com
...path then we can't use anything eagerly so we just jump into the check expert kind which is the big humongous match that we use to match on all the different type kinds or expert kinds in here type check um and depending on what the expert kind is...
Video 2023-08-03
coredumped.dev
...Unboxing requires unsafe code Must manually match the tag to the right data type. There are no compiler checks here. No way to match directly on the union. Need to create an accessor functions to get the underlying value as an enum. Can’t use variants as values. With an...
Observations/Thoughts 2021-10-27 ~14 min read
arxiv.org
...Yuga uses a multi-phase analysis approach, starting with a quick pattern-matching algorithm to identify potential buggy components and then conducting a flow and field-sensitive alias analysis to confirm the bugs. We also curate new datasets of lifetime annotation bugs. Yuga successfully detects bugs with good precision on...
Research 2023-10-18 ~1 min read
travisf.net
...failures: ---- test::test_instruction_group_ids stdout ---- thread 'test::test_instruction_group_ids' panicked at 'Expected groups {1} does NOT match computed insn groups {110} with ', src/lib.rs:287:8 note: Run with `RUST_BACKTRACE=1` for a backtrace. I was unable to reproduce the bug on my GNU...
News & Blog Posts 2018-09-25 ~22 min read
zed.dev
...But we know that intuitive feeling is hard-earned, and we wanted Zed's split diff view to match the rest of the editor: fast, minimal, and well-crafted. The split diff view in Zed, showing several changes in the project diff Diffs are different in Zed Building this new...
Project/Tooling Updates 2026-02-25 ~4 min read
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
docs.rs
...let mut lru_cache = LinkedHashMap::new(); let key = "key".to_owned(); // Try to find my expensive to construct and hash key let _cached_val = match lru_cache.raw_entry_mut().from_key(&key) { RawEntryMut::Occupied(mut occupied) => { // Cache hit, move entry to the back. occupied.to_back(); occupied.into_mut...
Crate v0.12.2 2026-09-07
crates.io
...Fuzz tests verify the hand-written parser never panics and matches a nom-based reference implementation. light-weight. Minimal dependencies; uses Cargo features so callers can avoid them when undesired. Simple code that minimizes monomorphization bloat. Small data structures; eg http_auth::DigestClient currently weighs in at 32 bytes plus...
Crate v0.1.10 2024-08-31
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
github.com
...use versions::{Requirement, Versioning}; let req = Requirement::new("^1.2.3").unwrap(); let ver = Versioning::new("1.2.4").unwrap(); assert!(req.matches(&ver)); In this case, the incoming version 1.2.4 satisfies the "caret" constraint, which demands anything greater than or equal to 1.2.3 . See the...
Crate v8.0.1 2026-09-14
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
"I think it's worth noting that the fact that this program fails to compile whereas the analogous Python runs but gives the wrong answer is *exactly wh..."

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.