Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
github.com
...This means you have to provide matching Rust types in the scope of the struct under derive. It can be as simple as declarations like type URI = String; . This gives you complete freedom on how to treat custom scalars, as long as they can be deserialized. If such declarations are...
Crate v0.16.0 2026-01-15
crates.io
...spanned::Spanned, DeriveInput, ItemStruct, Fields, Attribute , parse_macro_input}; use quote::quote; fn process_attrs(attrs: &[Attribute]) -> Vec<Attribute> { attrs .iter() .filter_map(|attr| match process_attr(attr) { Ok(res) => Some(res), Err(msg) => { emit_error!(attr, "Invalid attribute: {}", msg); None } }) .collect() } fn process_fields(_attrs: &Fields) -> Vec<TokenStream> { // processing...
Crate v1.0.4 2020-07-31
clickhouse.com
...Additionally, with enabled validation, the crate supports structs with correct field names and matching types, but incorrect order of the fields, with an additional slight (5-10%) performance penalty. If you are looking to maximize performance, you could disable validation using Client::with_validation(false) . When validation is disabled, the...
Crate v0.15.3 2026-10-13
docs.rs
...U256 = match U256::from_str_radix("12345678901234567890", 10) { Ok(val) => val, Err(e) => panic!("Failed to parse integer"), }; // Calculate the `n`th Fibonacci number, using the type alias `U512`. use bnum::prelude::*; use bnum::types::U512; // `U512` is a type alias for a `Uint` which contains 64 `u8` digits // Calculate...
Crate v0.14.4 2026-03-24
crates.io
...1, 2, 3, 4, 5]; double_u32s_neon(neon, &mut values); assert_eq!(values, [2, 4, 6, 8, 10]); } } You can also mix and match intrinsics with the other approaches, using high-level code most of the time and dropping down to hardware-specific intrinsics only when necessary. Inlining Fearless...
Crate v1.3.0 2026-11-24
docs.rs
...If the significand happens to be longer than 19 digits, the parser falls back to the "slow path", in which case its performance roughly matches that of the top Rust/C++ libraries (and still beats them most of the time, although not by a lot). On little-endian systems, there...
Crate v0.2.0 2021-01-13
crates.io
...This feature does not necessarily match the behaviour of dynamically linking to a specific version of glibc on the build host. Version 2.32 can be specified, but runs on a host with only 2.31 available when it should instead abort with an error. Meanwhile specifying 2.33 will...
Crate v0.24.1 2026-11-04
docs.rs
...Binstall works by fetching the crate information from crates.io and searching the linked repository for matching releases and artifacts, falling back to the quickinstall third-party artifact host, to alternate targets as supported, and finally to cargo install as a last resort. You may want to see this page...
Crate v1.20.1 2026-06-21
github.com
...output.request(LineRequestFlags::OUTPUT, 0, "mirror-gpio")?; for event in input.events( LineRequestFlags::INPUT, EventRequestFlags::BOTH_EDGES, "mirror-gpio", )? { let evt = event?; println!("{:?}", evt); match evt.event_type() { EventType::RisingEdge => { output_handle.set_value(1)?; } EventType::FallingEdge => { output_handle.set_value(0)?; } } } Ok(()) } Async Usage Note that this requires the...
Crate v0.6.0 2023-09-12
docs.rs
...an error in the data modeling for the (optional) serde feature was corrected, so that when the 2.x -series serde implementation is used with serde-bincode , the derived serialization matches the usual X/Ed25519 formats; the rand version was updated. See CHANGELOG.md for more details. Backends and Features...
Crate v4.1.1 2021-10-14
docs.rs
...If the significand happens to be longer than 19 digits, the parser falls back to the "slow path", in which case its performance roughly matches that of the top Rust/C++ libraries (and still beats them most of the time, although not by a lot). On little-endian systems, there...
Crate v0.2.4 2026-08-14
docs.rs
nom
...Those error lists can be pattern matched to provide useful messages. custom error types : You can provide a specific type to improve errors returned by parsers safe parsing : nom leverages Rust's safe memory handling and powerful types, and parsers are routinely fuzzed and tested with real world data. So...
Crate v8.0.0 2025-01-26
docs.rs
...validity of parameters passed to glam to help catch runtime errors glam-assert - adds validation assertions to all builds cuda - forces glam types to match expected cuda alignment fast-math - By default, glam attempts to provide bit-for-bit identical results on all platforms. Using this feature will enable platform...
Crate v0.34.3 2026-11-08
crates.io
...spanned::Spanned, DeriveInput, ItemStruct, Fields, Attribute , parse_macro_input}; use quote::quote; fn process_attrs(attrs: &[Attribute]) -> Vec<Attribute> { attrs .iter() .filter_map(|attr| match process_attr(attr) { Ok(res) => Some(res), Err(msg) => { emit_error!(attr, "Invalid attribute: {}", msg); None } }) .collect() } fn process_fields(_attrs: &Fields) -> Vec<TokenStream> { // processing...
Crate v3.1.1 2026-08-30
docs.rs
...Providing your own library means most features of jemalloc-sys will be ignored in build script, and you are responsible for compiling the library to match what jemalloc-sys expects. Especially, handle API prefix as whatever feature unprefixed_malloc_on_supported_platforms says. For more information see jemalloc/INSTALL.md...
Crate v0.7.1+5.3.1-0-g81034ce1f1373e37dc865038e1bc8eeecf559ce8 2026-05-25
crates.io
...Those error lists can be pattern matched to provide useful messages. custom error types : You can provide a specific type to improve errors returned by parsers safe parsing : nom leverages Rust's safe memory handling and powerful types, and parsers are routinely fuzzed and tested with real world data. So...
Crate v0.2.0 2022-12-27
docs.rs
...concurrent uncached calls for the same key may each compute independently and overwrite each other, matching the 2.x behavior and Python's functools.lru_cache . Set sync_writes = "by_key" to deduplicate concurrent first calls for the same key through bucketed per-key locks. Set sync_writes = true (or...
Crate v4.1.1 2026-11-03
github.com
...𝔪𝔶 𝔟𝔬𝔬𝔨 𝔭𝔩𝔢𝔞𝔰𝔢!</body></html>") ); let image = nested.attachments().next().expect("an attachment"); assert_eq!(image.attachment_name(), Some("Book about ☕ tables.gif")); assert!(matches!(image.kind(), PartKind::Binary)); assert_eq!(image.decoded_len(), 42); Read header fields use mail_parser::{HeaderName, HeaderValue, MessageParser}; let raw = b"Received: from mx...
Crate v1.0.2 2026-11-23
github.com
...Arc<RwLock<Sessions>>, ) -> Result<impl warp::Reply, Infallible> { let request_token = request_token(&oidc_client, &login_query).await; match request_token { Ok(Some((token, user_info))) => { let id = uuid::Uuid::new_v4().to_string(); let login = user_info.preferred_username.clone(); let email = user_info.email.clone(); let user = User...
Crate v0.24.0 2026-08-30
github.com
...This means when the caller is an ESM import ( import "module" ), resolve options should be { "conditionNames": ["node", "import"] } CJS Per CJS Resolution algorithm LOAD_PACKAGE_EXPORTS(X, DIR) let MATCH = PACKAGE_EXPORTS_RESOLVE(pathToFileURL(DIR/NAME), "." + SUBPATH, package.json "exports", ["node", "require"]) defined in the ESM resolver. This means when...
Crate v11.24.3 2026-08-24
"Memory-safe implementations of PNG ([png](https://crates.io/crates/png), [zune-png](https://crates.io/crates/zune-png), [wuffs](https://github.com/goo..."

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.