Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
docs.rs
...usize, field: &'a str, matched_field: bool, extracted: Option<i32>, } impl<'a, 'sval> sval::Stream<'sval> for Extract<'a> { // Rust structs that derive `Value`, like `MyRecord` from earlier, are records in `sval`'s data model. // Each field of the record starts with a call to `record_value_begin` with its...
Crate v2.21.1 2026-08-03
docs.rs
...async support, including mix 'n match with sync code Ergonomic : Powerful select -like interface Usage To use Flume, place the following line under the [dependencies] section in your Cargo.toml : flume = "x.y" Cargo Features Flume comes with several optional features: spin : use spinlocks instead of OS-level synchronisation primitives...
Crate v0.12.0 2025-12-08
github.com
...The following table summarizes the matching versions: oid-registry 0.7.x depends on asn1-rs 0.6.0 oid-registry 0.6.x depends on asn1-rs 0.5.0 oid-registry 0.5.x depends on asn1-rs 0.4.0 Contributing OIDs All OID values, constants, and...
Crate v0.9.0-beta.1 2025-04-14
docs.rs
...code! let first_token = input.into_iter().next().expect("no input"); // `try_from` will return an error if the token is not a literal. match Literal::try_from(first_token) { // Convenient methods to produce decent errors via `compile_error!`. Err(e) => return e.to_compile_error(), // You can now inspect...
Crate v1.0.0 2025-10-20
docs.rs
...io::Error) -> RetryPolicy<io::Error> { match e.kind() { io::ErrorKind::Interrupted => RetryPolicy::Repeat, io::ErrorKind::PermissionDenied => RetryPolicy::ForwardError(e), _ => RetryPolicy::WaitRetry(Duration::from_millis(5)), } } async fn serve_connection(stream: TcpStream) { // ... } #[tokio::main] async fn main() { let addr = //... # "127.0.0.1:12345"; let mut listener = TcpListener::bind(addr).await...
Crate v0.6.0 2021-01-13
docs.rs
...RequestContext<RoleServer>, ) -> Result<CompleteResult, McpError> { let values = match &request.r#ref { Reference::Prompt(prompt_ref) if prompt_ref.name == "sql_query" => { match request.argument.name.as_str() { "operation" => vec!["SELECT", "INSERT", "UPDATE", "DELETE"], "table" => vec!["users", "orders", "products"], "columns" => { // Adapt suggestions based on previously filled arguments if let Some(ctx...
Crate v3.1.4 2026-08-20
docs.rs
...RequestContext<RoleServer>, ) -> Result<CompleteResult, McpError> { let values = match &request.r#ref { Reference::Prompt(prompt_ref) if prompt_ref.name == "sql_query" => { match request.argument.name.as_str() { "operation" => vec!["SELECT", "INSERT", "UPDATE", "DELETE"], "table" => vec!["users", "orders", "products"], "columns" => { // Adapt suggestions based on previously filled arguments if let Some(ctx...
Crate v3.1.4 2026-08-20
crates.io
...The audio data is transformed into the frequency domain, the spectrum is scaled to match the target sample rate, and then transformed back to produce the resampled output. This type of resampler is considerably faster than sinc-based approaches but doesn't support changing the resampling ratio. Choosing a resampler...
Crate v5.0.0 2026-08-10
crates.io
...Motivation For large scale mono-repos, with subsystems it eventually becomes very tedious to match against nested error variants defined with thiserror . Using anyhow or eyre - while it being an application - also comes with an unmanagable amount of pain for medium-large scale code bases. fatality is a solution to...
Crate v0.1.1 2024-05-15
docs.rs
...We get all the benefits of the editor's brace matching, syntax highlighting, indentation, and maybe autocompletion. But rather than compiling that as code into the current crate, we can treat it as data, pass it around, mutate it, and eventually hand it back to the compiler as tokens to...
Crate v1.0.47 2026-07-19
docs.rs
...USAGE extern crate file_lock; use file_lock::{FileLock, FileOptions}; use std::io::prelude::*; fn main() { let should_we_block = true; let lock_for_writing = FileOptions::new().write(true).create_new(true); let mut filelock = match FileLock::lock("myfile.txt", should_we_block, lock_for_writing) { Ok(lock) => lock, Err...
Crate v2.1.11 2024-02-17
crates.io
...The types and values of all the exported APIs match the platform that libc is compiled for. Windows API bindings are not included in this crate. If you are looking for WinAPI bindings, consider using crates like windows-sys . More detailed information about the design of this library can be...
Crate v1.0.0-alpha.4 2026-08-03
sagiegurari.github.io
...Vec<_> = Vendor::iter() .filter(|v| matches!(v, Vendor::GitHubActions | Vendor::GitLabCI | Vendor::CircleCI )) .collect(); Note: Iteration uses strum 's EnumIter derive macro under a feature flag. Run complete example with: cargo run --example iterate_vendors --features iter API Documentation See full docs at: API Docs Contributing See contributing guide Release...
Crate v0.14.15 2025-11-01
crates.io
...Once implemented, this crate providers a default type for creating a TimeZoneProvider by mixing and matching objects that implement the secondary traits, NormalizerAndResolver . Why two secondary traits? Well that's because TimeZoneProvider handles two different concerns: fetching and formatting normalized and canonicalized time zone identifiers, and resolving time zone data...
Crate v0.2.6 2026-08-05
crates.io
pdb
...let symbol_table = pdb.global_symbols()?; let address_map = pdb.address_map()?; let mut symbols = symbol_table.iter(); while let Some(symbol) = symbols.next()? { match symbol.parse() { Ok(pdb::SymbolData::Public(data)) if data.function => { // we found the location of a function! let rva = data.offset.to_rva(&address_map...
Crate v0.8.0 2022-06-08
crates.io
...Pin<&mut Self>) { match self.project() { EnumProj::Variant { pinned, unpinned } => { let _: Pin<&mut T> = pinned; let _: &mut U = unpinned; } } } } pin-project vs pin-project-lite Here are some similarities and differences compared to pin-project . Similar: Safety pin-project-lite guarantees safety in much the same way as pin-project...
Crate v0.2.17 2026-02-27
crates.io
...Because the Ed25519 validation rules are consensus-critical for Zcash, Zebra requires an Ed25519 library that implements the Zcash-flavored validation rules specifically, and since it is unreasonable to expect an upstream dependency to maintain Zcash-specific behavior, this crate provides an Ed25519 implementation matching the Zcash consensus rules exactly...
Crate v4.2.0 2026-03-20
magiclen.org
...use std::path::Path; use std::env; use path_absolutize::*; let p = Path::new("../path/to/123/456"); let cwd = env::current_dir().unwrap(); let cwd_parent = cwd.parent(); match cwd_parent { Some(cwd_parent) => { assert_eq!(Path::join(&cwd_parent, Path::new("path/to/123/456")).to_str().unwrap...
Crate v4.0.1 2026-07-11
docs.rs
...new(" world"); assert_eq!(s.concat(&s2).as_bytes(), b"hello world"); // Slicing assert_eq!(s.slice(1..4).as_bytes(), b"ell"); // Pattern matching assert!(s.starts_with(b"he")); assert!(s.ends_with(b"lo")); assert!(s.contains(b"el")); assert_eq!(s.find(b"el"), Some(1...
Crate v0.1.7 2025-05-15
docs.rs
...Unix) the emulated COM API needed its fair share of fixes to match the layout on Windows. This results in repetitive API breakage that is hard to detect from within hassle-rs : be sure to math the hassle-rs release below to a minimum DXC commit to prevent runtime failures...
Crate v0.12.0 2025-06-13
"Using R or Numpy is like driving around in a sports car. You just turn the wheel, press the pedals, and burn rubber. Rust (and other systems languages..."

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.