Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
docs.rs
...Only emits a single Rename event if the rename From and To events can be matched Merges multiple Rename events Takes Rename events into account and updates paths for events that occurred before the rename event, but which haven't been emitted, yet Optionally keeps track of the file system...
Crate v0.8.0 2026-11-21
crates.io
...Pin<&mut Self>) { match self.project() { EnumProj::Pinned(x) => { let _: Pin<&mut T> = x; } EnumProj::Unpinned(y) => { let _: &mut U = y; } } } } code like this will be generated See #[pin_project] attribute for more details, and see examples directory for more examples and generated code. Related Projects pin-project-lite : A...
Crate v1.2.0 2026-11-19
crates.io
...for n in 0..100 { match circuit_breaker.call(|| dangerous_call()) { Err(Error::Inner(_)) => { eprintln!("{}: fail", n); }, Err(Error::Rejected) => { eprintln!("{}: rejected", n); break; }, _ => {} } } Or configure custom backoff and policy: use std::time::Duration; use failsafe::{backoff, failure_policy, CircuitBreaker}; // Create an exponential growth backoff which starts from 10s and...
Crate v1.3.0 2024-07-05
docs.rs
...use tree_sitter_highlight::HighlightEvent; let highlights = highlighter.highlight( &javascript_config, b"const x = new Y();", None, |_| None ).unwrap(); for event in highlights { match event.unwrap() { HighlightEvent::Source {start, end} => { eprintln!("source: {start}-{end}"); }, HighlightEvent::HighlightStart(s) => { eprintln!("highlight style started: {s:?}"); }, HighlightEvent::HighlightEnd => { eprintln!("highlight style ended"); }, } } The last...
Crate v0.26.11 2026-07-12
docs.rs
...let recording_rules = client.rules().kind(RuleKind::Recording).get().await; assert!(recording_rules.is_ok()); // Retrieve a list of time series that match certain labels sets ("series selectors"). let select1 = Selector::new() .eq("handler", "/api/v1/query"); let select2 = Selector::new() .eq("job", "node") .regex_eq("mode", ".+"); let time_series...
Crate v0.9.0 2026-05-09
docs.rs
...The value is scaled to match that suffix if possible. use human_format::Formatter; let mut f = Formatter::new(); f.with_suffix("M"); assert_eq!(f.format(100_000.0), "0.10 M"); If the suffix is not valid for the current Scales , the formatter falls back to automatic selection...
Crate v1.2.1 2026-01-17
docs.rs
Automata construction and matching using regular expressions. regex-automata This crate exposes a variety of regex engines used by the regex crate. It provides a vast, sprawling and "expert" level API to each regex engine. The regex engines provided by this crate focus heavily on finite automata implementations and specifically...
Crate v0.4.19 2026-11-19
crates.io
...u64 = match r.payload { j::ResponsePayload::Success(val) => serde_json::from_str(val.get()).unwrap(), j::ResponsePayload::Failure(err) => panic!("unexpected error: {err}"), }; assert_eq!(n, 12345); } Low-level Ethereum JSON-RPC transport abstraction. This crate handles RPC connection and request management. It builds an RpcClient on top of the...
Crate v2.6.1 2026-11-16
docs.rs
...join("CMakeLists.txt").exists()); let mut builder = cmake::Config::new(lib_source_dir); // Look for -Zsanitizer=address for flag in rustflags::from_env() { if matches!(flag, Flag::Z(z) if z == "sanitizer=address") { builder.define("ENABLE_SANITIZERS", "ON"); builder.define("SANITIZERS", "address"); break; } } builder.build(); } License Licensed under either of...
Crate v0.1.7 2025-03-03
crates.io
...This allows the Provider to expose a consistent interface to the rest of the program, while adjusting request and response types to match the underlying blockchain. Providers can be composed via stacking. For example, a Provider that tracks the nonce for a given address can be stacked onto a Provider...
Crate v2.6.1 2026-11-16
crates.io
...phone-number length #[garde(length(<mode>, min=<usize>, max=<usize>, equal=<usize>)] a container with length in min..=max or equal - matches #[garde(matches(<field>))] a field matches another field - range #[garde(range(min=<expr>, max=<expr>, equal=<expr>))] a number in the range min..=max or equal - contains #[garde...
Crate v0.23.0 2026-05-23
crates.io
...phone-number length #[garde(length(<mode>, min=<usize>, max=<usize>, equal=<usize>)] a container with length in min..=max or equal - matches #[garde(matches(<field>))] a field matches another field - range #[garde(range(min=<expr>, max=<expr>, equal=<expr>))] a number in the range min..=max or equal - contains #[garde...
Crate v0.23.0 2026-05-23
docs.rs
...It's not completely incidental due to Web history, but encoding_rs will prioritize compliance with the WHATWG Encoding Standard over matching the Windows system converters exactly. Still, encoding_rs is in practice useful for decoding legacy Windows data, because all the "ANSI code pages" that are the default for...
Crate v0.1.3 2026-09-12
docs.rs
...Attribute::remove_attributes which takes an &mut Vec<syn::Attribute> and does not only parse the Attribute but also removes those matching. Useful for helper attributes for proc macros, where the helper attributes need to be removed. For parsing a single TokenStream e.g. for parsing the proc macro input...
Crate v0.11.0 2026-09-12
crates.io
...As such, substrings may not always match your intuition: use substring::Substring; assert_eq!("ã".substring(0, 1), "a"); // As opposed to "ã". assert_eq!("ã".substring(1, 2), "\u{0303}") The above example occurs because "ã" is technically made up of two UTF-8 scalar values: the letter "a...
Crate v1.4.5 2021-02-04
docs.rs
Macros to keep types in lockstep with DBus XML definitions zbus-lockstep-macros zbus-lockstep-macros extends zbus-lockstep to match the signature of signal types <T as zvariant::Type>::signature() with a corresponding signature from a DBus XML file more conveniently and succinctly. Motivation In the context of IPC...
Crate v0.8.0 2026-11-16
docs.rs
...1u64 }).unwrap(); ident.normalize().unwrap(); assert!(matches!(ident, Format::TypeName(s) if s.ends_with("Foo<u64>"))); Contributing See the CONTRIBUTING file for how to help out. License This project is available under the terms of either the Apache 2.0 license or the MIT license .
Crate v0.3.0 2026-05-26
docs.rs
...I run async every 7 seconds"); // Query the next execution time for this job let next_tick = l.next_tick_for_job(uuid).await; match next_tick { Ok(Some(ts)) => println!("Next time for 7s job is {:?}", ts), _ => println!("Could not get next tick for 7s job"), } }) })? ).await?; // Needs the...
Crate v0.15.1 2025-10-28
docs.rs
...The macro takes in a token stream and for each token that matches a given predicate it replaces that token with a given replacement sequence of tokens. For example the caller may want to replace the token self with the single token __value . The rule shown here is responsible for...
Crate v1.0.9 2022-12-19
docs.rs
...a bare byte-oriented x25519 function which matches the function specified in RFC7748 , as well as a higher-level Rust API for static and ephemeral Diffie-Hellman. Examples Alice and Bob are two adorable kittens who have lost their mittens, and they wish to be able to send secret messages...
Crate v3.0.0 2026-07-06
"All the pro C/C++ arguments seem to come down to "Good drivers don’t need seat belts because they don’t get in accidents""

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.