Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
crates.io
A simple Command Line Argument Parser with parser combinators bpaf Lightweight and flexible command line argument parser with derive and combinatoric style API Derive and combinatoric API bpaf supports both combinatoric and derive APIs and it’s possible to mix and match both APIs at once. Both APIs provide access...
Crate v0.9.29 2026-11-12
crates.io
...suspend(i); println!("[coroutine] got {} from parent", input) } println!("[coroutine] exiting coroutine"); }); let mut counter = 100; loop { println!("[main] resuming coroutine with argument {}", counter); match coroutine.resume(counter) { CoroutineResult::Yield(i) => println!("[main] got {:?} from coroutine", i), CoroutineResult::Return(()) => break, } counter += 1; } println!("[main] exiting"); } Output [main] creating coroutine [main...
Crate v0.3.4 2026-05-24
github.com
bat
...The option takes an argument of the form pattern:syntax where pattern is a glob pattern that is matched against the file name and the absolute file path. The syntax part is the full name of a supported language (use bat --list-languages for an overview). Note: You probably want...
Crate v0.26.1 2025-12-02
crates.io
...let result = client.instance_create(org, proj, body).await?; Note that the type of each parameter must match precisely--no conversion is done implicitly. Builder The "builder" style generates Client methods that produce a builder struct. API parameters are applied to that builder, and then the builder is executed (via...
Crate v0.17.0 2026-11-19
crates.io
...let result = client.instance_create(org, proj, body).await?; Note that the type of each parameter must match precisely--no conversion is done implicitly. Builder The "builder" style generates Client methods that produce a builder struct. API parameters are applied to that builder, and then the builder is executed (via...
Crate v0.17.0 2026-11-19
crates.io
...let result = client.instance_create(org, proj, body).await?; Note that the type of each parameter must match precisely--no conversion is done implicitly. Builder The "builder" style generates Client methods that produce a builder struct. API parameters are applied to that builder, and then the builder is executed (via...
Crate v0.17.0 2026-11-19
github.com
...usize = an / 2; // pick the center element of a and find the corresponding one in b using binary search let a = &m.a_slice()[am]; match m.b_slice()[..bn].binary_search_by(|b| self.cmp(a, b).reverse()) { Ok(bm) => { // same elements. bm is the index corresponding to am...
Crate v0.1.2 2021-11-27
crates.io
...When serializing values that cannot be represented in BSON, or deserialzing from BSON that does not match the format expected by the type, the default error will only report the specific field that failed. To aid debugging, enabling the serde_path_to_error feature will augment errors with the full...
Crate v3.1.0 2025-11-20
docs.rs
...Value) -> Result<i64, FromValueError> { match v { Value::Int(x) => Ok(-x), Value::UInt(x) => Ok(-(x as i64)), x => Err(FromValueError(x)), } } fn neg_ser(x: i64) -> Value { Value::Int(-x) } FromRow Derive Also defines some constants on the struct: const TABLE_NAME: &str – if table_name is given const...
Crate v0.38.2 2026-07-24
crates.io
v8
...The API should match the original API as closely as possible. Do not introduce additional call overhead. (For example, previous attempts at Rust V8 bindings forced the use of Persistent handles.) Do not rely on a binary libv8.a built outside of cargo. V8 is a very large project (over...
Crate v152.2.0 2026-08-20
docs.rs
...use palette::{ encoding, white_point, rgb::Rgb, chromatic_adaptation::AdaptFrom, Srgb }; // RgbStandard and RgbSpace are implemented for 2 and 3 element tuples, // allowing mixing and matching of existing types. In this case we are // combining sRGB primaries, the CIE equal energy white point and the // sRGB transfer function (a.k...
Crate v0.7.7 2026-08-02
crates.io
...An array may have a fixed length that matches a fixed list of item types; this is well represented by a Rust tuple. The distinction between Vec<T> and HashSet<T> is only if the schema's uniqueItems field is false or true respectively. Objects In general, objects turn into...
Crate v0.10.2 2026-11-25
crates.io
...An array may have a fixed length that matches a fixed list of item types; this is well represented by a Rust tuple. The distinction between Vec<T> and HashSet<T> is only if the schema's uniqueItems field is false or true respectively. Objects In general, objects turn into...
Crate v0.10.2 2026-11-25
crates.io
...An array may have a fixed length that matches a fixed list of item types; this is well represented by a Rust tuple. The distinction between Vec<T> and HashSet<T> is only if the schema's uniqueItems field is false or true respectively. Objects In general, objects turn into...
Crate v0.10.2 2026-11-25
docs.rs
...result = r#"LOAD DATA LOCAL INFILE 'whatever' INTO TABLE `tmp` FIELDS TERMINATED BY ',' ENCLOSED BY '\"' LINES TERMINATED BY '\r\n'"#.ignore(&mut conn).await; match result { Ok(()) => (), Err(Error::Server(ref err)) if err.code == 1148 => { // The used command is not allowed with this MySQL version return Ok(()); }, Err(Error...
Crate v0.37.1 2026-09-01
docs.rs
...When using bitvec to manage protocol buffers, you will need to select the exact type parameters that match your memory layout. For instance, TCP uses <u8, Msb0> , while IPv6 on a little-endian machine uses <u32, Lsb0> . Once you have done this, you can replace all of your (memory & mask...
Crate v1.1.1 2026-06-18
docs.rs
...The name of this module must match /// the `lib.name` setting in the `Cargo.toml`, else Python will not be able to /// import the module. #[pyo3::pymodule] mod string_sum { use pyo3::prelude::*; /// Formats the sum of two numbers as string. #[pyfunction] fn sum_as_string(a: usize, b: usize...
Crate v0.30.1 2026-10-14
crates.io
...This is because it gets both live trust information (new roots, explicit markers, and auto-managed CRLs) and better matches the common expectation of apps running on that platform (to use proxies, for example). Otherwise, it becomes your maintenance burden to ship updates right away in order to handle increasing...
Crate v0.7.1 2026-09-24
crates.io
...link_section::TypedSection<MyType>; } mod elsewhere { // This must match the definition site! #[in_section(unsafe, name = my_crate::SECTION_NAME, type = typed)] // optionally: aux(main = MAIN_SECTION) static ITEM: MyType = MyType(42); } Syntax Section definition: #[section(<kind>)] #[section(<kind>, aux(main = <path::to::MAIN_SECTION>))] #[section(unsafe, type = <kind>)] #[section...
Crate v0.19.4 2026-11-14
crates.io
...Formatting ( cargo xtask fmt ) and linting ( cargo xtask clippy --sarif ) wrap the usual Cargo tooling while matching CI defaults. The workflows in .github/workflows invoke the same commands, so keeping local runs green is usually enough to satisfy the checks enforced on main . OPA Conformance Regorus has been verified to...
Crate v0.15.0 2026-11-09
"The whole point of Rust is that before there were two worlds: * Inefficient, garbage collected, reliable languages * Efficient, manually allocated, d..."
— Simon Buchan on rust-users

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.