crates.io
...This allows the Provider to expose a consistent interface to the rest of the program, while adjusting request and response types to match the underlying blockchain. Providers can be composed via stacking. For example, a Provider that tracks the nonce for a given address can be stacked onto a Provider...
Crate
v2.6.1
2026-11-16
rust-lang.github.io
...when a target modifier changes), and that match the user's profile.
These proposals are drafts and are intended only to signpost future direction for this feature, and ensure compatibility with the current proposal:
• build-std.when = "compatible"
• build-std.when = "match-profile"
↩ Why does "always" rebuild in release profile...
RFC 3874
RFC
2025-06-05
~48 min read
blog.adamperry.me
...A super nifty part of the stackcollapse scripts for flamegraph is that they let you grep for functions matching a pattern. Protip: all Rust benchmark harnesses invoke a closure like so: bencher.iter(|| do_measured_thing()), easily allowing you to grep for calls to closures to limit the flamegraph to...
News & Blog Posts
2016-07-26
~20 min read
blog.meilisearch.com
...It was related to the fact that Meilisearch did not have enough data to rate crates except the query matching words.
Meilisearch doesn't know how to settle equal crates with only the matching words
Downloads counts amazingly improved the search results. This data is available through crates.io. A...
News & Blog Posts
2019-11-12
~4 min read
rolisz.ro
...use core::fmt;
use crate::map::State::{Gray, Red, Blue, Black};
impl fmt::Display for State {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
let char = match self {
Gray => 'N',
Red => 'R',
Blue => 'B',
Black => 'X'
};
write!(f, "{}", char)
}
}
impl fmt::Display for Cell<'_> {
fn fmt(&self, f: &mut...
News & Blog Posts
2020-06-16
~12 min read
chillfish8.ghost.io
...The issue is we can't match relevant documents correctly when the two systems act in different ways.Act 2: Correcting the correction behaviourThe first plan of attack was simple -> just correct the index data itself and search that then return the original text separately. Simple right?Well yes and...
Observations/Thoughts
2021-11-24
~12 min read
www.newrustacean.com
...chriskrycho
Twitter: @chriskrycho
A dummy container for use with references.A simple example of using the dereference operator.A simple demonstration of matching against a reference type.Give a basic example of how the reference operator works.
News & Blog Posts
2016-08-09
~1 min read
arXiv
arxiv.org
...We then present \ourtool{}, an LLM-based approach that encodes these issues as reusable optimization rules to recover the performance of translated Rust. \ourtool{} profiles each project to locate hot functions and matches them against rule-specific patterns. The LLM then checks each rule's rewrite preconditions against the project...
Artificial Intelligence
Zhiqiang Yuan, Chong Wang, Zhenhao Zhou et al.
2026-10-16
arXiv:2610.23044
ryanskinner.com
...This is what happens when your architecture matches React's design intentions.The Three Missing PiecesLooking back, I realize we'd shipped Rari with some architectural gaps. Not bugs—gaps. We could render React Server Components, but we weren't doing it the right way. Here's what we added...
Project/Tooling Updates
2025-10-29
~6 min read
lucumr.pocoo.org
...T) -> Value {
Value::from(ValueRepr::Object(DynObject::new(Arc::new(value))))
}
pub fn downcast_object_ref<T: 'static>(&self) -> Option<&T> {
match self.0 {
ValueRepr::Object(ref o) => o.downcast_ref(),
_ => None,
}
}
pub fn downcast_object<T: 'static>(&self) -> Option<Arc<T>> {
match self.0 {
ValueRepr::Object(ref o) => o...
Rust Walkthroughs
2024-05-22
~15 min read
blog.cloudflare.com
...Env) -> Result<Response> {
console_log!(
"{} {}, located at: {:?}, within: {}",
req.method().to_string(),
req.path(),
req.cf().coordinates().unwrap_or_default(),
req.cf().region().unwrap_or("unknown region".into())
);
if !matches!(req.method(), Method::Post) {
return Response::error("Method Not Allowed", 405);
}
if let Some(file) = req.form_data().await?.get...
Miscellaneous
2021-09-15
~3 min read
matklad.github.io
...impl<T> Drop for Node<T> {
fn drop(&mut self) {
loop {
match (self.left.take(), self.right.take()) {
(None, None) => break,
(None, Some(it)) | (Some(it), None) => *self = *it,
(Some(left), Some(right)) => {
*self =
*if left.depth > right.depth { left } else { right }
}
}
}
}
}
This requires maintaining the depths though. Can we...
Observations/Thoughts
2022-11-23
~4 min read
crates.io
...phone-number length #[garde(length(<mode>, min=<usize>, max=<usize>, equal=<usize>)] a container with length in min..=max or equal - matches #[garde(matches(<field>))] a field matches another field - range #[garde(range(min=<expr>, max=<expr>, equal=<expr>))] a number in the range min..=max or equal - contains #[garde...
Crate
v0.23.0
2026-05-23
www.thespatula.io
...TcpStream) {
let mut ws = WebSocket::new(stream);
match ws.connect() {
Ok(()) => {
println!("WebSocket connection established");
match ws.handle_connection() {
Ok(_) => {
println!("Connection ended without error");
}
Err(e) => {
println!("Connection ended with error {:?}", e);
}
}
}
Err(e) => {
println!("Failed to establish a WebSocket connection: {}", e);
}
}
}
What happens here is we create our...
Observations/Thoughts
2024-07-24
~20 min read
llogiq.github.io
...This means I have to
match over all variants that could contain relevant subexpressions to take
care of the attributes. An accessor on Expr would have been very helpful
here.
When I finally thought that I had it figured out, I got an unhelpful error
during macro expanson. cargo expand...
News & Blog Posts
2018-11-13
~4 min read
arXiv
arxiv.org
...These give descriptive differences of 2.3 percentage points and 4.14$\times$, respectively; task-budget, repair and harness differences prevent a matched-performance claim.
Artificial Intelligence
Aditya Vempaty, Himaneesh Sompalle, Manan Tayal et al.
2026-11-03
arXiv:2611.05590
crates.io
...phone-number length #[garde(length(<mode>, min=<usize>, max=<usize>, equal=<usize>)] a container with length in min..=max or equal - matches #[garde(matches(<field>))] a field matches another field - range #[garde(range(min=<expr>, max=<expr>, equal=<expr>))] a number in the range min..=max or equal - contains #[garde...
Crate
v0.23.0
2026-05-23
morestina.net
...fn max_line(file_name: &str) -> io::Result<u64> {
// ...
}
This signature gives the callers freedom to decide how to handle the errors indicated by max_line – they can unwrap() the return value to panic in case of error, they can match the error and handle the error variant, or they...
Learn Simple Rust
2020-10-14
~11 min read
docs.rs
...It's not completely incidental due to Web history, but encoding_rs will prioritize compliance with the WHATWG Encoding Standard over matching the Windows system converters exactly. Still, encoding_rs is in practice useful for decoding legacy Windows data, because all the "ANSI code pages" that are the default for...
Crate
v0.1.3
2026-09-12
doc.rust-lang.org
pub fn home_dir() -> Option<crate::path::PathBuf>
...Examples
use std::env;
match env::home_dir() {
Some(path) => println!("Your home directory, probably: {}", path.display()),
None => println!("Impossible to get your home dir!"),
}
function
std
Stable since 1.0.0
Version 1.100.0-nightly