Rust Search

Find the best content on Rust, curated by the community; a search engine for Rustaceans.
crates.io
...This means that it's important to match whichever regex implementation syntect is using * This is also why fancy's bundled syntax definitions are smaller than onig's default: syntect-onig Feature Desc. syntect-onig / syntect-fancy Enables the minimal feature set that we require from syntect syntect-default-onig...
Crate v0.5.2+bat-0.26.1 2026-08-07
docs.rs
...integer, and a float otherwise str::regex_matches 2 String, String Returns true if the first argument matches the regex in the second argument (Requires regex_support feature flag) str::regex_replace 3 String, String, String Returns the first argument with all matches of the regex in the second argument...
Crate v14.0.0 2026-11-21
magiclen.org
...use std::path::Path; use std::env; use path_dedot::*; let p = Path::new("../path/to/123/456"); let cwd = env::current_dir().unwrap(); let cwd_parent = cwd.parent(); match cwd_parent { Some(cwd_parent) => { assert_eq!(Path::join(&cwd_parent, Path::new("path/to/123/456")).to_str().unwrap...
Crate v4.0.1 2026-07-11
docs.rs
...derive(Embed)] #[folder = "$CARGO_MANIFEST_DIR/foo"] struct Asset; include-exclude : Filter files to be embedded with multiple #[include = "*.txt"] and #[exclude = "*.jpg"] attributes. Matching is done on relative file paths, via globset . exclude attributes have higher priority than include attributes. use rust_embed::Embed; #[derive(Embed)] #[folder = "examples/public...
Crate v8.14.0 2026-11-11
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
docs.rs
...use num_format::SystemLocale; fn main() { let locale = SystemLocale::default().unwrap(); println!("My system's default locale is..."); println!("{:#?}", &locale); let available = SystemLocale::available_names().unwrap(); println!("My available locale names are..."); println!("{:#?}", available); match SystemLocale::from_name("en_US") { Ok(_) => println!("My system has the 'en_US' locale."), Err...
Crate v0.4.4 2022-12-03
crates.io
...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.2 2026-11-22
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.5 2026-11-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.2 2026-08-26
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.2 2026-11-12
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
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
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.1 2026-10-16
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.13.0 2026-09-25
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.6 2026-09-15
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.43.0 2026-11-01
"I would argue that if the Rust project would have just one mission statement, it wouldn't be "create a safe systems programming language". It would be..."

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.