Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
doc.rust-lang.org
...4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out You can also run tests whose name matches a pattern: $ cargo test test_foo $ cargo test test_foo Compiling blah v0.1.0 (file:///nobackup/blah) Finished dev [unoptimized + debuginfo] target(s) in 0.35 secs Running target/debug...
Rust by Example Book 2024-01-01 ~2 min read
unhandledexpression.com
...let i_ = input.clone(); match parser(i_) { Ok((i,o)) => Ok((i, Some(o))), Err(Err::Error(_)) => Ok((input, None)), Err(e) => Err(e), } While macros could become complex, the generated code was quite simple, mainly using nested pattern matching. This made most combinators easy to write, and the generated...
News & Blog Posts 2019-06-25 ~10 min read
gitlab.com
...match select3( btn_a.wait_for_falling_edge(), btn_b.wait_for_falling_edge(), touch.wait_for_falling_edge(), ).await { ... } When a button is pressed, one of the match arms is executed, allowing us to determine which button it is via Either3: match { ... } { Either3::First(_) => BTN_CHAN.send(Button::A...
Rust Walkthroughs 2024-11-13 ~16 min read
ideas.reify.ing
...u16, } pub async fn get_or_default_light_states() -> LightStates { match tokio::fs::read_to_string(LIGHT_STATES_FILE_PATH).await { Ok(json) => match serde_json::from_str(&json) { Ok(states) => return states, Err(e) => todo!("warning") } Err(e) => todo!("warning") } return LightStates::default(); } pub async fn handle_signal(shared...
Rust Walkthroughs 2024-05-08 ~16 min read
heikoseeberger.de
...So where did they come from? I matched every increase of the counter with the log of the chaos agent. Five of them came right after a kill, three right after a graceful shutdown, and none after a partition.A kill losing a request is no surprise, but a graceful...
Observations/Thoughts 2026-11-11 ~6 min read
phildawes.net
...The thread spawning is currently removed from the codebase, which means that racer will sometimes panic and fail to produce matches. As an alternative to wrapping libsyntax calls I've been spending time removing panics from Rust's libsyntax itself in the last few weeks. If you want to follow...
Project Updates 2015-04-13 ~2 min read
iohk.io
...our team, learn more about our projects, and get a real sense of our culture and ways of working.Offer03If it’s a good match, we'll move to offer, complete a background check, and prepare to welcome you through onboarding.From day one, we want you to feel informed...
Rust Jobs 2020-10-28 ~2 min read
2019.jsconf.eu
...With the characters, we had some pattern-matching going on.We're going to do the same thing. This time, though, we're able to pattern-match on tokens.Now we can say we are sitting on a token that is representing a key word, or representing an identifier. If...
News & Blog Posts 2019-06-25 ~21 min read
rust.code-maven.com
...If the compiler encounters prompt! with two parameters, this rule will be matched and the macro will be replaced by a call to the prompt function passing the two parameters to it. ($text: expr, $count: expr) => { prompt($text, $count); }; The second rule expects only one parameter we called $text and...
Miscellaneous 2023-12-20 ~2 min read
www.abetterinternet.org
...Other benefits include excellent health insurance, a 100% match for 401k contributions, and flexible time off and parental leave policies. Applying To apply, please submit your resume to: careers@letsencrypt.org ISRG is an Equal Opportunity Employer. We do not discriminate on the basis of race, color, religion, sex, gender...
Rust Jobs 2020-10-07 ~2 min read
gethopp.app
...RemoteVideoTrack, output_file: &str) -> io::Result<()> { let latency = measure_latency(room, track.rtc_track()).await; write_latency_to_csv(&latency, output_file)?; Ok(()) } For each frame, the controller checks if at least 100 out of the first 200 Y-channel samples match the watermark value (0xa). If valid, it records...
Rust Walkthroughs 2025-06-11 ~13 min read
rust-lang.github.io
...if input > max { max } else if input < min { min } else { input } and input.max(min).min(max); and even match input { c if c > max => max, c if c < min => min, c => c, } Typically these patterns exist where there is a need to interface with APIs that take normalized values...
RFC 1961 RFC 2017-03-26 ~2 min read
chrismacnaughton.com
...To make your app available at /snap/bin/$NAME, you should make sure that the app_name and snap name defined in snapcraft.yaml match. For example: name: rust-hello # you probably want to 'snapcraft register <name>' ... apps: rust-hello: command: hello The code used to build this snap is...
Blog Posts 2016-11-22 ~2 min read
dawnandrew100.github.io
...DOIMonthly challengeStrobemers are fuzzy matching seeds that offer better tolerance for mutations like insertions and deletions compared to traditional k-mers. They're a great tool for efficient sequence comparison and alignment.Implement your own strobemer generator function in Rust.MinStrobe - Choose subsequent strobes by selecting the minimum hash within...
Newsletters 2025-07-23 ~2 min read
jordankaye.dev
...u32) -> Self { 15 match self { 16 Self::Empty => Self::SingleDigit(val), 17 Self::SingleDigit(a) => Self::DoubleDigit(a, val), 18 Self::DoubleDigit(a, _) => Self::DoubleDigit(a, val), 19 } 20 } 21 22 pub fn extract(self) -> u32 { 23 match self { 24 Self::SingleDigit(a) => a * 10 + a, 25 Self::DoubleDigit(a...
Observations/Thoughts 2024-01-03 ~34 min read
www.rotoclone.zone
...Event| { // this code will be run whenever changes to the content directory are detected match event { // The `NoticeRemove` and `NoticeWrite` events are separate from the regular `Remove` and `Write` events; // they fire immediately as soon as changes to the watched directory are detected, even if the file in // question is...
Rust Walkthroughs 2021-11-10 ~13 min read
www.willusher.io
...let addr = (&host[..], worker::PORT).to_socket_addrs().unwrap().next().unwrap(); // Use mio's TcpStream to connect to the worker, if we succeed in starting the // connection add this stream to the event loop match TcpStream::connect(&addr) { Ok(stream) => { // Each worker is identified in the event loop by their...
News & Blog Posts 2016-01-04 ~25 min read
guillaumegomez.github.io
...frewsxcv indicated how ChildStd{in,out,err} FDs are closed. @Aaronepower updated RELEASES.md for 1.21.0. @thombles improved diagnostics when attempting to match tuple enum variant with struct pattern. @napen123 added doc example to HashMap::hasher. @lucasem made docs improvement in std::sync::{PoisonError, TryLockError}. @tirr-c made...
News & Blog Posts 2017-09-26 ~2 min read
hugopeters.me
...We store them in an 8x8 matrix to match the layout of the board. We also add the constraint that the value must be in the range [1,8]. let mut board = Vec::new(); for y in 0..8 { let mut row = Vec::new(); for x in 0..8 { let...
Observations/Thoughts 2024-05-01 ~6 min read
rustc-dev-guide.rust-lang.org
...cargo run --release --bin collector profile_local cachegrind +<SHA1> --rustc2 +<SHA2> --exact-match serde_derive-1.0.136 --profiles Check --scenarios IncrUnchanged
Guide to Rustc Development Book 2024-01-01 ~2 min read
"I love Rust because it reduces bugs by targeting it’s biggest source… me. Say the same thing about seatbelts in a car. If you don’t plan to have..."

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.