Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
gstreamer.freedesktop.org
...Make sure to select the version that matches your Rust toolchain, i.e. MinGW or MSVC. After installation set the ``PATH` environment variable as follows: # For a UNIX-style shell: $ export PATH="c:/gstreamer/1.0/msvc_x86_64/bin${PATH:+:$PATH}" # For cmd.exe: $ set PATH=C:\gstreamer\1...
Crate v0.25.3 2026-06-29
gstreamer.freedesktop.org
...Make sure to select the version that matches your Rust toolchain, i.e. MinGW or MSVC. After installation set the ``PATH` environment variable as follows: # For a UNIX-style shell: $ export PATH="c:/gstreamer/1.0/msvc_x86_64/bin${PATH:+:$PATH}" # For cmd.exe: $ set PATH=C:\gstreamer\1...
Crate v0.25.2 2026-05-11
gstreamer.freedesktop.org
...Make sure to select the version that matches your Rust toolchain, i.e. MinGW or MSVC. After installation set the ``PATH` environment variable as follows: # For a UNIX-style shell: $ export PATH="c:/gstreamer/1.0/msvc_x86_64/bin${PATH:+:$PATH}" # For cmd.exe: $ set PATH=C:\gstreamer\1...
Crate v0.25.3 2026-06-29
docs.rs
...type StringRef = ForLt!(&String); match polonius::<_, _, StringRef>(map, |map| match map.get(&22) { | Some(ret) => PoloniusResult::Borrowing(ret), | None => PoloniusResult::Owned { value: 42, // We cannot name `map` in this branch since `ret` borrows it in the // other (the very lack-of-polonius problem). input_borrow: /* map */ Placeholder, }, }) { // 🎩🪄 `polonius-the...
Crate v0.5.0 2025-10-27
docs.rs
...Simpler solution If you don't need advanced features but just to test markdown content, the doc-comment crate might better match your needs. It also prevents recompilations and can be used as a dev-dependency . License Licensed under either of Apache License, Version 2.0 ( LICENSE-APACHE or https...
Crate v0.13.7 2022-02-01
crates.io
...Scaling RealFFT matches the behaviour of RustFFT and does not normalize the output of either forward or inverse FFT. To get normalized results, each element must be scaled by 1/sqrt(length) , where length is the length of the real-valued signal. If the processing involves both an FFT and...
Crate v3.5.0 2025-06-12
docs.rs
...usize) -> usize { match n { 0 => 0, 1 | 2 => 1, _ => fib(n - 1) + fib(n - 2), } } #[magnus::init] fn init(ruby: &magnus::Ruby) -> Result<(), Error> { ruby.define_global_function("fib", magnus::function!(fib, 1)); Ok(()) } Defining a method (with a Ruby self argument): fn is_blank(rb_self: String) -> bool { !rb...
Crate v0.8.2 2025-10-08
docs.rs
...It is recommended to depend on the full version of the crate since types may change in patch-level updates in order to match Gitlab's interface: gitlab = "=0.1902.0" API bugs Sometimes, the API will return null for fields that have been added after the entry was created...
Crate v0.1902.0 2026-07-23
docs.rs
...prefix of another scope using bit manipulation in only a few instructions Cache regex matches to reduce number of times oniguruma is asked to search a line Accelerate scope lookups to reduce how much selector matching has to be done to highlight a list of scope operations Lazily compile regexes...
Crate v5.3.0 2025-09-27
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 v2.0.1 2024-09-06
docs.rs
...let choice = get_choice(); match choice { Choices::This => { /* ... */ }, Choices::That => { /* ... */ }, Choices::Other => { // This case optimized out entirely, no panic emitted. assume!( unsafe: @unreachable, "choice was other", ); }, } use assume::assume; #[inline(always)] fn compute_value() -> usize { let result = compute_value_internal(); // Can also be used to provide hints to the caller...
Crate v0.5.0 2023-03-25
docs.rs
...To put it simply you get something similar to the following: #[derive(Debug, Clone, Copy, PartialEq, Eq)] enum DrinkKind { Mate, Coffee, Tea } impl Drink { const fn kind(&self) -> DrinkKind { match self { Drink::Mate => DrinkKind::Mate, Drink::Coffee(..) => DrinkKind::Coffee, Drink::Tea { .. } => DrinkKind::Tea, } } } Const context The kind() method is a...
Crate v0.5.0 2026-02-03
docs.rs
...To put it simply you get something similar to the following: #[derive(Debug, Clone, Copy, PartialEq, Eq)] enum DrinkKind { Mate, Coffee, Tea } impl Drink { const fn kind(&self) -> DrinkKind { match self { Drink::Mate => DrinkKind::Mate, Drink::Coffee(..) => DrinkKind::Coffee, Drink::Tea { .. } => DrinkKind::Tea, } } } Const context The kind() method is a...
Crate v0.5.0 2026-02-03
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.1 2026-06-04
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
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.23.0 2026-06-16
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
"The Rust compiler is basically 30 years of trying to figure out how to teach a computer how to see the things we worry about as C developers."

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.