Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
docs.rs
...OnceLock<()> = OnceLock::new(); APP_ONCE.get_or_init(|| { android_logger::init_once(android_logger::Config::default().with_min_level(log::Level::Info)); }); loop { app.poll_events(Some(std::time::Duration::from_millis(500)) /* timeout */, |event| { match event { PollEvent::Wake => { log::info!("Early wake up"); }, PollEvent::Timeout => { log::info!("Hello, World...
Crate v0.6.1 2026-03-24
github.com
...test failed, to rerun pass '--bin playground' Simple and neat! Note that if the test arguments names match the template's ones you can don't repeat the arguments attributes. Composition and Values If you need to add some cases or values when apply a template you can leverage on...
Crate v0.7.0 2024-05-30
github.com
mio
...event. for event in events.iter() { // We can use the token we previously provided to `register` to // determine for which socket the event is. match event.token() { SERVER => { // If this is an event for the server, it means a connection // is ready to be accepted. // // Accept the connection and drop...
Crate v1.2.2 2026-07-13
crates.io
...The version numbers of deadpool-postgres and tokio-postgres do not necessarily match. If they do it is just a coincidence that both crates have the same MAJOR and MINOR version number. deadpool-postgres tokio-postgres 0.7 – 0.12 0.7 0.6 0.6 0.4 – 0.5...
Crate v0.14.1 2024-12-18
docs.rs
...client.rs (same as the above) properties.rs match_signal.rs rtkit.rs monitor.rs Server This example grabs the com.example.dbustest bus name, adds the /hello path which implements the com.example.dbustest interface, and specifies that this interface has a Hello method. It then listens for incoming...
Crate v0.9.12 2026-07-03
docs.rs
...a=e op='*' b=e # mult | left=e '+' b=e # add For such rule ANTLR will generate enum EContextAll containing mult and add alternatives, so you will be able to match on them in your code. Also corresponding struct for each alternative will contain fields you labeled. I.e. for...
Crate v0.3.0-beta 2022-07-22
crates.io
iai
...u64) -> u64 { match n { 0 => 1, 1 => 1, n => fibonacci(n-1) + fibonacci(n-2), } } fn iai_benchmark_short() -> u64 { fibonacci(black_box(10)) } fn iai_benchmark_long() -> u64 { fibonacci(black_box(30)); } iai::main!(iai_benchmark_short, iai_benchmark_long); Finally, run this benchmark with cargo bench . You should...
Crate v0.1.1 2021-01-24
wgpu.rs
...1080 will match NVIDIA GeForce 1080ti ). WGPU_DX12_COMPILER with the DX12 shader compiler you wish to use ( dxc , static-dxc , or fxc ). Note that dxc requires dxcompiler.dll (min v1.8.2502) to be in the working directory, and static-dxc requires the static-dxc crate feature to be...
Crate v30.0.1 2026-08-22
docs.rs
...Notes: While ttf-parser doesn't support rendering by itself, there are multiple rendering libraries on top of it: rusttype , ab-glyph and fontdue . Matching points are not supported. Performance TrueType fonts designed for fast querying, so most of the methods are very fast. The main exception is glyph outlining...
Crate v0.25.1 2024-11-29
crates.io
...Most of the basic types of D-Bus match 1-1 with all the primitive Rust types. The only two exceptions being, Signature and ObjectPath , which are really just strings. These types are covered by the Basic trait. Similarly, most of the container types also map nicely to the usual...
Crate v5.15.0 2026-08-18
github.com
...If no compliance tests are readily available, then a status of Excellent will be assigned if Symphonia's output matches that of a reference implementation, or ffmpeg , over a large test corpus. Formats (Demuxers) Format Status Gapless* Feature Flag Default Crate AIFF Great Yes aiff No symphonia-format-riff CAF...
Crate v0.6.1 2026-08-13
docs.rs
...config.port(1433); config.authentication(AuthMethod::sql_server("SA", "<Mys3cureP4ssW0rD>")); let tcp = TcpStream::connect(config.get_addr()).await?; tcp.set_nodelay(true)?; let client = match Client::connect(config, tcp.compat_write()).await { // Connection successful. Ok(client) => client, // The server wants us to redirect to a different address Err(Error::Routing...
Crate v0.11.8 2024-07-19
docs.rs
...given a Makefile or other metadata file (such as Cargo.toml ) that lists the names of other files, how should the names in the Makefile be matched with the ones on disk? This has no general, cross-platform solution in systems that support non-UTF-8 paths. However, restricting paths...
Crate v1.2.5 2026-07-28
docs.rs
A complete harfbuzz shaping algorithm port to Rust. rustybuzz rustybuzz is a complete harfbuzz 's shaping algorithm port to Rust. Matches harfbuzz v10.0.1, commit c7ef6a2e (one commit after v10.0.1) Why? Because you can add rustybuzz = "*" to your project and it just works. No need for a...
Crate v0.20.1 2024-11-12
github.com
...When shape of request/response in OpenAI-compatible APIs don't exactly match OpenAI. Extend existing types in this crate with new fields like extra_body (with serde flatten) To avoid typing verbose types. To escape deserialization errors on expected type and actual response mismatch. *_byot methods require same trait...
Crate v0.41.3 2026-07-31
graham.cool
...Any generated schema should match how serde_json would serialize/deserialize to/from JSON. To support this, Schemars will check for any #[serde(...)] attributes on types that derive JsonSchema , and adjust the generated schema accordingly. use schemars::{schema_for, JsonSchema}; use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize, JsonSchema)] #[serde(rename...
Crate v1.2.2 2026-07-27
graham.cool
...Any generated schema should match how serde_json would serialize/deserialize to/from JSON. To support this, Schemars will check for any #[serde(...)] attributes on types that derive JsonSchema , and adjust the generated schema accordingly. use schemars::{schema_for, JsonSchema}; use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize, JsonSchema)] #[serde(rename...
Crate v1.2.2 2026-07-27
crates.io
...If the discriminator matches, it returns the next length bytes. If not, it jumps ahead length bytes and reads the next 8-byte discriminator. Serialization of variable-length types The initial example works using the bytemuck crate for zero-copy serialization and deserialization. It's possible to use Borsh by...
Crate v0.9.1 2026-03-23
tokio.rs
...loop { let n = match socket.read(&mut buf).await { // socket closed Ok(0) => return, Ok(n) => n, Err(e) => { eprintln!("failed to read from socket; err = {:?}", e); return; } }; // Write the data back if let Err(e) = socket.write_all(&buf[0..n]).await { eprintln!("failed to write to socket; err...
Crate v1.53.1 2026-07-20
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
"I decided to keep learning Rust because I liked the syntax. I liked the speed. I liked the community. I liked it all. It felt like a breath of fresh a..."

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.