Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
fasterthanli.me
...Subcommand, } #[derive(FromArgs)] #[argh(subcommand)] enum Subcommand { Sample(sample::Sample), } impl Subcommand { fn run(self) { match self { Subcommand::Sample(x) => x.run(), } } } fn main() { // see https://turbo.fish/ argh::from_env::<Args>().subcommand.run(); } // in `src/sample.rs` use argh::FromArgs; #[derive(FromArgs)] /// Run sample code #[argh(subcommand, name...
News & Blog Posts 2020-07-08 ~23 min read
c410-f3r.github.io
...The recurring stumbling block is that Intermediate CAs or Root CAs need a Subject Key Identifier and if an Authority Key Identifier extension exists in a self-signed certificate, it must match the SKI. CERTS_DIR="$(dirname $0)/../.certs" openssl genpkey -algorithm ed25519 -out $CERTS_DIR/key.pem openssl req...
Observations/Thoughts 2026-07-29 ~8 min read
mobilizon.fr
...Which is a perfect match for Rust! In this presentation we will:Weigh pros and cons of switching to Rust.See how to progressively rewrite a large codebase in Rust.See how to have guardrails to make sure the new code behaves like the legacy one.Have a look at...
Europe 2023-10-18 ~2 min read
gergo.erdi.hu
...So my idea was to rewrite that in Rust, mainly aiming to use Rust's algebraic data type support with pattern matching. Given the way one usually programs microcontrollers, I think pattern matching gives me the most bang for my buck for now, until we start designing and implementing funky...
News & Blog Posts 2017-05-16 ~6 min read
www.infoq.com
...Do we really want to check every possible type of input? Do we want to add a new match for while expressions, and loop, and ... you get the point. The Fold trait The syn library has an advanced tool for use cases like this one, where we want to go...
Rust Walkthroughs 2024-03-13 ~10 min read
hegdenu.net
...4 point corridor, 13/15 locations match medium_corridor: 109 point corridor, 70/221 locations match long_narrow_corridor_few_total: 300 point corridor, 34/65 locations match long_corridor_many_filtered: 251 point corridor, 251/2547 locations match I like the way that Divan allows you to organize benchmarks...
Rust Walkthroughs 2024-05-01 ~18 min read
agourlay.github.io
...the index of the last event played) let start_index = self.current_cursor; let end_index = match sorted_events[start_index..].binary_search_by_key(start_index, |event| event.tick) { Ok(next_position) => start_index + next_position, Err(next_position) => { if next_position == 0 { // no matching elements return Some(&[]); } // return...
Rust Walkthroughs 2024-07-17 ~14 min read
dev.to
...u8 = 0; for (r, row) in self.cells.iter().enumerate() { for (c, cell) in row.iter().enumerate() { if cell.is_empty() { continue; } // check rows, // check columns, if player_number_match(cell.get_top_piece().get_player_number(), &number) { rows[r] += 1; columns[c] += 1; } // check diagonal, if r == c && player...
Observations/Thoughts 2020-10-14 ~10 min read
guillaumegomez.github.io
...Look for T-doc tagged issues on GitHub! Waiting for merge @QuietMisdreavus updated formatting of fn signatures and where clauses to match style rfcs in rustdoc. @estebank pointed at fields that make the type recursive, added an explicit help message for binop type mismatch, added end line display of multiline...
News & Blog Posts 2017-04-11 ~2 min read
keminglabs.com
...But Finda highlights the matches as you type: which means that I’d need to juggle multiple typefaces and colors, as well as track the bounding box of each drawn substring to layout everything. Beyond rendering, I also ran into difficulties on the operating system integration front. I found it...
News & Blog Posts 2018-03-20 ~10 min read
guillaumegomez.github.io
...BlueSpaceCanary removed the double introduction for cargo run. @gavinb improved error message and snippet for “did you mean x”. @kmcallister updated Arc docs to match new Rc docs. @christopherdumas updated includes! documentation. @GuillaumeGomez fixed run button appearing when it shouldn’t, merged E0002 into E0004, added missing urls for error...
Other Weeklies from Rust Community 2016-10-11 ~2 min read
sixtyfps.io
...Make the strong_ref and weak_ref of VRc atomic ( 7cc13d ) To match the equivalent in rust C++ Add a few asserts that the non-thread safe API is not called in a thread ( 9b869f ) Fixes Set the width of items in a ListView ( 143510 ) Fixes #408 Fix build with...
Project/Tooling Updates 2021-08-18 ~2 min read
ethanfrei.com
...Maybe it's my lack of knowledge but I couldn't get a catch-all route with Rocket that would match when there was some path and when there was no path, so I needed to make two routes. Secondly, notice the , rank = 2 part above. This is needed because...
News & Blog Posts 2018-06-26 ~6 min read
vksegfault.github.io
...Unfortunatelly development stalled and till today there is no exact matching to SIMD inctructions, so we must rely on auto vectorization.At the other end of the spectrum there have been C# which had fully standarized SIMD usage ever since .NET Core 3.0. We don’t have to bother...
Miscellaneous 2021-08-10 ~10 min read
xd009642.github.io
...impl SampleFormat { const fn bytes_per_sample(&self) -> usize { match self { Self::Int16 => 2, Self::Float32 => 4, } } fn to_float_fn(&self) -> Box<dyn Fn(&[u8]) -> f32> { let len = self.bytes_per_sample(); match self { Self::Int16 => Box::new(move |x: &[u8]| { i16::from_le_bytes((&x[..len]).try_into...
Observations/Thoughts 2024-11-06 ~17 min read
tratt.net
...As soon as ‘a’ is matched, the rule succeeds, which leaves ‘b’ unmatched; neither parser tries to match ‘ab’ directly. ☒My favourite example of this is best expressed as a Parsing Expression Grammar (PEG): r <- a / ab or as a hand-written recursive descent parser: def r(s, i): if...
Observations/Thoughts 2020-09-16 ~38 min read
sixtyfps.io
...If they match, the solved property is set to true in the model. If they don't match, start a timer that will close them after one second. While the timer is running, we disable every tile so one cannot click anything during this time. Insert this code before the...
Rust Walkthroughs 2020-12-16 ~14 min read
llogiq.github.io
...Excellent!) Another thing happened when I revisited the Rust benchmarksgame entries and found that regex now has a regex::bytes submodule that is capable to match and replace stuff on byte slices. So I tried to incorporate this into the regex_dna benchmark, but found out that it performed worse...
News & Blog Posts 2016-04-25 ~2 min read
github.com
...Note that we do not perform coercions when matching traits (except for receivers, see below). If there is an impl for some type `U`, and `T` coerces to `U`, that does not constitute an implementation for `T`. For example, the following will not type check, even though it is OK...
RFC 401 RFC 2014-10-30 ~15 min read
d34dl0ck.me
...So there is no need to design a custom error type unless you want to match on it in your code or log it differently than you would present it to the user. For a library crate, however, you want to design your error types carefully, as they will be...
Observations/Thoughts 2025-06-04 ~10 min read
"I have a dream. A dream that Cargo has its own release cadence, so it is free from the strict stability curse and can then ship major version releases..."

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.
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.