Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
rust-lang.github.io
...The crate file I downloaded matches the cksum in the index; the index matches the cksum in the audit log; the public key used in the audit log is the one I expected. This scheme could be augmented to allow the use of several signing technologies. We would need to...
RFC 3231 RFC 2022-02-02 ~24 min read
kitsu.me
...Write>(&self, out: &mut Output<W, Db>) -> serialize::Result { match *self { Language::En => out.write_all(b"en")?, Language::Ru => out.write_all(b"ru")?, Language::De => out.write_all(b"de")?, } Ok(IsNull::No) } } That's a little bit verbose, though pretty straightforward. We just write down bytes to...
News & Blog Posts 2020-06-02 ~4 min read
lukesteensen.com
...I've update the code here to match the released APIs and added a section on the new tokio-io crate. Introduction With that out of the way, what is Tokio? The project's most direct inspiration was Scala's Finagle. Unlike the Scala and the JVM, however, Rust didn...
News & Blog Posts 2016-12-27 ~8 min read
tonyarcieri.com
...Path, buffer : &mut[u8]) { let mut fd = File::open(&path); match fd.read(buffer) { Err(what) => panic!("say {}", what), Ok(x) => if x < 1 { return; } } let len = buffer[0] as usize; let mut outfd = File::create(&outpath); match outfd.write_all(&buffer[0 .. len]) { Err(what) => panic!("say {}", what), Ok...
Notable Links 2015-03-23 ~5 min read
crates.io
...Boundary.match will return true if a set of graphemes matches the boundary condition Boundary methods for start and len describe how enum variants consume letters when matched Pattern is reverted back to being an enum, but with a Custom variant that allowed you to pass your own fn (&[&str...
Crate v0.12.0 2026-08-27
rust-trends.com
...Enums where one variant is substantially larger than the others no longer force every match arm to allocate space for the largest case.The post at dystroy.org includes concrete before-and-after examples from real code, showing both the struct layout change and the corresponding reduction in stack frame...
Newsletters 2026-05-06 ~4 min read
siciarz.net
...let docopt = match Docopt::new(USAGE) { Ok(d) => d, Err(e) => e.exit(), }; println!("{}", docopt); let args: Args = match docopt.decode() { Ok(args) => args, Err(e) => e.exit(), }; Docopt::new() returns a Result<Docopt, Error> value. The errors from docopt have a handy exit() method that prints the error message...
Blog Posts 2014-12-08 ~4 min read
steveklabnik.com
...pub fn append(&mut self, other: &mut Self) { match self.tail { None => mem::swap(self, other), Some(mut tail) => { if let Some(mut other_head) = other.head.take() { unsafe { tail.as_mut().next = Some(other_head); other_head.as_mut().prev = Some(tail); } self.tail = other.tail.take(); self.len...
News & Blog Posts 2018-09-18 ~5 min read
crates.io
...worker::Context) -> Result<Response> { console_log!( "{} {}, located at: {:?}, within: {}", req.method().to_string(), req.path(), req.cf().unwrap().coordinates().unwrap_or_default(), req.cf().unwrap().region().unwrap_or("unknown region".into()) ); if !matches!(req.method(), Method::Post) { return Response::error("Method Not Allowed", 405); } if let Some(file) = req.form...
Crate v0.9.0 2026-11-11
sindrejohansen.no
...They have similar support for tagged unions and pattern matching. They both handle errors using the sum-type Result. It’s easy to see how they are inspired by a similar set of languages. The big difference is that Elm compiles to JS and Rust compiles to machine code. The...
News & Blog Posts 2018-11-20 ~5 min read
bluss.github.io
...macro_rules! try_control { ($e:expr) => { match $e { x => if x.should_break() { return x; } } } }
Blog Posts 2016-10-18 ~2 min read
hermitcore.org
...Rust features like iterators, closures, pattern matching, option and result, string formatting, and the ownership system are still usable for a kernel developers. This was the motivation to evaluate Rust for HermitCore and to develop an experimental version of our libOS in Rust. Components like the IP stack and uhyve...
News & Blog Posts 2018-06-12 ~1 min read
implfuture.dev
...Request<Body>) -> Self::Future { match <R as Routable>::recognize(req.uri().path()).is_some() { // if request path matches Yew route, serve S true => self.yew_service.call(req), // else serve F false => self.fallback_service.call(req), } } } For the full version, check it out on GitHub.With a Yew-route...
Rust Walkthroughs 2022-10-05 ~20 min read
crates.io
...In these cases, we have done our best to add the new functionality in a way that matched the style of standard HTTP usage. The current version of the Amazon S3 API is 2006-03-01. Amazon S3 supports the REST API. Getting Started Examples are available for many services...
Crate v1.162.0 2026-11-25
crates.io
...Example fn main() { match enable_ansi_support::enable_ansi_support() { Ok(()) => { // ANSI escape codes were successfully enabled, or this is a non-Windows platform. // Use your terminal color library of choice here. println!("\x1b[31mHello, world\x1b[0m"); } Err(_) => { // The operation was unsuccessful, typically because it's running on an...
Crate v0.3.1 2026-04-14
jabberwocky.ca
...Address, data: &mut [u8]) -> Result<(), Error> { match addr { // Read from Data Port 0x00 | 0x02 => { }, // Read from Control Port 0x04 | 0x06 => { }, _ => { println!("{}: !!! unhandled read from {:x}", DEV_NAME, addr); }, } Ok(()) } fn write(&mut self, addr: Address, data: &[u8]) -> Result<(), Error> { match addr { // Write to Data Port 0x00 | 0x02 => { }, // Write to Control...
Rust Walkthroughs 2022-01-12 ~31 min read
asyncmove.com Archived: primary link replaced with an archive on 2026-09-12T11:26:49.391Z (UTC; replacement date, not snapshot date)
...usize) -> Result<[u8; 32], &'static str> { let mut trimmed_address = [0u8; 64]; let mut i = 0; while i < 64 && start + i < address.len() { trimmed_address[i] = address.as_bytes()[start + i]; i += 1; } let mut bytes = [0u8; 32]; let mut j = 0; while j < 32 { let byte = match ( hex_char...
Rust Walkthroughs 2025-01-15 ~7 min read
thunderseethe.dev
...Because Identifier will match let_keyword it’s longer match will win out over LetKw’s let match.We use regex to recognize our integers and whitespace as well. An integer is one or more digits, recognized by \d+. Whitespace is one or more spaces, recognized by \s+.Our last...
Rust Walkthroughs 2025-11-12 ~34 min read
www.youtube.com
...MISRA C is simply disapplied by Rust's language guarantees • MC/DC coverage and the open design questions of applying it to constructs like match • The consortium today: around 150 members from Infineon to Airbus to Volvo Cars, three subcommittees (Coding Guidelines, Liaison, Tooling), and how joining is as simple...
Video 2026-09-03
rust-lang.github.io
...Commands such as cargo check --workspace skip workspace members whose requirements do not match the selected target, much like required-features skips cargo-targets when their required features are not enabled. [package] name = "hello_cargo" required-targets = 'cfg(any(target_os = "linux", target_os = "macos"))' Motivation For more background, see...
RFC 4013 RFC 2026-10-02 ~28 min read
"The Demon has access to a Super Turing Machine."

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.