Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
crates.io
Resource path matching and router actix-router Resource path matching and router.
Crate v0.5.4 2026-02-18
crates.io
...i32) -> impl Iterator<Item = i32> { match x { 0 => 1..10, #[nested] _ => match x { 1 => vec![5, 10].into_iter(), _ => 0..=x, }, } } See documentation for more details. Supported traits #[enum_derive] implements the supported traits and passes unsupported traits to #[derive] . #[enum_derive] supports many of the standard library traits and...
Crate v0.8.10 2026-07-25
crates.io
A collection of useful testing assertions and utilities assert_matches A rust library for pattern-matching assertions
Crate v2.0.4 2025-11-25
docs.rs
path-tree is a lightweight high performance HTTP request router for Rust path-tree A lightweight high performance HTTP request router for Rust Parameters Syntax Pattern Kind Description :name Normal Matches a path piece, excludes / :name? Optional Matches an optional path piece, excludes / /:name?/ /:name? OptionalSegment Matches an optional path...
Crate v0.8.3 2025-03-23
crates.io
proc macro for generating match block for alphabets, please dont use this. its slow and extremly likely to not be what you are looking for.
Crate v0.1.2 2026-01-14
docs.rs
...Usage wild::args() is a drop-in replacement for std::env::args() . [dependencies] wild = "2" fn main() { let args = wild::args(); println!("The args are: {:?}", args.collect::<Vec<_>>()); } Usage with Clap let matches = clap::App::new("your_app") .arg(…) .arg(…) .arg(…) // .get_matches(); change to: .get_matches_from(wild::args());
Crate v2.2.1 2024-01-27
durch.github.io
...let new_token = async { match fetcher.fetch_token().await { Ok(token) => token, Err(e) => panic!(e) } }; assert_ne!(token, new_token); Ok(()) }
Crate v0.17.0 2025-12-09
github.com
...must_match takes 1 string argument. It will error if the field mentioned is missing or has a different type than the field the attribute is on. Examples: #[validate(must_match = "password2")] #[validate(must_match(other = "password2"))] contains Tests whether the string contains the substring given or if a key...
Crate v0.16.0 2022-07-25
docs.rs
Strongly Typed Mimes mime Support MIME (Media Types) as strong types in Rust. Documentation Usage extern crate mime; // common types are constants let text = mime::TEXT_PLAIN; // deconstruct Mimes to match on them match (text.type_(), text.subtype()) { (mime::TEXT, mime::PLAIN) => { // plain text! }, (mime::TEXT, _) => { // structured text! }, _ => { // not text! } }
Crate v0.3.17 2023-03-20
crates.io
...dev is fuzzy local versions on top of all the others, which are added with a + and have implicitly typed string and number segments no semver-caret ( ^ ), but a pseudo-semver tilde ( ~= ) ordering contradicts matching: We have e.g. 1.0+local > 1.0 when sorting, but ==1.0 matches...
Crate v0.7.3 2024-12-04
docs.rs
...TokenStream) -> TokenStream { let macro_string = parse_macro_input!(input as MacroString); let path = match macro_string.eval() { Ok(path) => path, Err(err) => return TokenStream::from(err.to_compile_error()), }; let content = match fs::read(&path) { Ok(content) => content, Err(err) => return TokenStream::from(macro_string.error(err).to_compile_error...
Crate v0.3.0 2026-07-18
docs.rs
...let all_matched: String = selection.iter().map(|s| s.inner_html().trim().to_string()).collect(); assert_eq!( all_matched, "<li>1</li><li>2</li><li>3</li><li>4</li><li>5</li><li>6</li>" ); // or: let all_matched: String = selection.nodes().iter().map(|s| s.inner_html...
Crate v0.28.0 2026-05-18
crates.io
...use googletest::prelude::*; #[gtest] fn strictly_between_9_and_11() { let value = 10; expect_that!(value, gt(9).and(not(ge(11)))); } Pattern-matching One can use the macro matches_pattern! to create a composite matcher for a struct or enum that matches fields with other matchers: use googletest::prelude...
Crate v0.14.3 2026-06-04
github.com
...must_match takes 1 string argument. It will error if the field mentioned is missing or has a different type than the field the attribute is on. Examples: #[validate(must_match(other = "password2"))] contains Tests whether the string contains the substring given or if a key is present in a...
Crate v0.21.0 2026-07-27
crates.io
...In order for the filter to match, it is enough that one rule associated to the system call matches. A system call may also map to an empty rule vector, which means that the system call will match, regardless of the actual arguments. The following diagram models a simple filter...
Crate v0.5.0 2025-03-07
docs.rs
...Examples From a file match imagesize::size("example.webp") { Ok(size) => println!("Image dimensions: {}x{}", size.width, size.height), Err(why) => println!("Error getting dimensions: {:?}", why) } From a vector let data = vec![0x47, 0x49, 0x46, 0x38, 0x39, 0x61, 0x64, 0x00, 0x64, 0x00]; match imagesize::blob_size(&data) { Ok(size) => println...
Crate v0.15.0 2026-07-09
github.com
...BytesMut = "*2\r\n+Foo\r\n+Bar\r\n".into(); let total_len = bytes.len(); let (frame, amt, buf) = match decode_bytes_mut(&mut bytes) { Ok(Some(result)) => result, Ok(None) => panic!("Expected complete frame"), Err(e) => panic!("{:?}", e) }; assert_eq!(frame, expected.0, "decoded frame matched"); assert_eq...
Crate v6.0.0 2024-11-15
docs.rs
...112,578 ns/iter (+/- 11,778) test match_u8::application_zip ... bench: 222 ns/iter (+/- 144) test match_u8::image_gif ... bench: 140 ns/iter (+/- 14) test match_u8::image_png ... bench: 139 ns/iter (+/- 18) test match_u8::text_plain ... bench: 44 ns/iter (+/- 3) However, it should be...
Crate v3.2.2 2025-11-14
github.com
...use file_diff::{diff_files}; use std::fs::{File}; let mut file1 = match File::open("./src/lib.rs") { Ok(f) => f, Err(e) => panic!("{}", e), }; let mut file2 = match File::open("./src/lib.rs") { Ok(f) => f, Err(e) => panic!("{}", e), }; diff_files(&mut file1, &mut file2); The diff() function...
Crate v1.0.0 2016-04-10
docs.rs
...The database can match a font using CSS-like queries. See Database::query . The database can try to load system fonts. Currently, this is implemented by scanning predefined directories. The library does not interact with the system API. Provides a unique ID for each font face. Non-goals Advanced font...
Crate v0.24.0 2026-07-29
"Rust is basically Haskell's athletic younger brother. Not as intellectual, but still smart and lifts weights."

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.