Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
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
crates.io
...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.33.5 2026-08-19
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 v3.0.0-rc.10 2026-08-04
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.23.0 2026-02-28
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.2 2026-07-12
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.27 2026-07-29
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.14.0 2026-04-24
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.14.0 2026-04-24
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.14.0 2026-04-24
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
"> When programmers are saying that there are a lot of bicycles in code that means that it contains reimplementations of freely available libraries ins..."

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.