Want true pub-sub semantics in Rust?
The Bus crate gives you SP→MC broadcast semantics.
Crossbeam’s MPSC supports multiple consumers, but it round-robins messages, not exactly what you want for fan-out.
crates.io/crates/bus
🦀 #Rust Tip #119:
Some folks suggest using std::panic::catch_unwind as a solution to the recent unwrap() panic that stopped the internet.
In my opinion this is an anti-pattern, some thoughts:
- bypasses memory safety constraints (e.g., panic in unsafe block)
#119 (contd.)
- imposes runtime cost by stack walking
- encourages using panic for control flow
- many APIs are not unwind-safe
- cannot catch "fatal" errors such as out-of-memory
Daily Rust retweeted
You generally want a Clippy linter like this one in your Rust production code
🦀 Bad news everyone - unwrap() is the reason behind cloudflare outage
>The FL2 Rust code that makes the check and was the source of the unhandled error is shown below
blog.cloudflare.com/18-novem…
Daily Rust retweeted
Animate anything with Rust 🦀
🌀 KramaFrame — A simple, generic, and flexible keyframe animation library.
⚡ Manage multiple animations, apply easing functions, and map progress to any range.
🐁 Includes a terminal demo w/ @ratatui_rs
⭐ GitHub: github.com/CosmoBunny/kramaf…
#rustlang #animation #library #programming #terminal #ratatui #tui
Daily Rust retweeted
This is gold if you're using async Rust 💯
🌀 channels-console — A TUI dashboard for inspecting std/tokio/futures/crossbeam channels.
📊 Watch messages, queue depth, throughput & memory usage live.
🦀 Written in Rust & built with @ratatui_rs
⭐ GitHub: github.com/pawurb/channels-c…
#rustlang #ratatui #tui #async #concurrency #tokio #debugging
🦀 #Rust Tip #118:
Result::and_then lets us chain operations that return Result, bypassing nested pattern matching. Although the ? operator often accomplishes the same, and_then allows us to remain in a more functional "combinator style".
🦀 #Rust Tip #117:
fn foo(&self)
fn bar (&mut self)
fn baz (self)
fn boo (mut self)
Confused about which one to use in your struct implementations? Here's a useful overview:
🦀 #Rust Tip #116:
Most of us should know Mutex<> for locking access to specific resources. However, this does also require locking the resources for read. If you need concurrent access to read, take a look at RwLock<>
doc.rust-lang.org/std/sync/s…
🦀 #Rust Tip #115:
Here's an interesting self-referential use of iterators, from Rustlings (rustlings.rust-lang.org/, highly recommended for Rust learners).
We get an iterator that capitalizes the char, then use the chain() operator to attach the rest of the string chars.
"Cargo is the most admired cloud development and infrastructure tool" in 2025, says a Stack Overflow study.
survey.stackoverflow.co/2025…
🦀 #Rust Tip #114:
A serde tip: #[serde(flatten)] can be used to beautify Json output when serializing. This is useful to improve the handling of enums in particular:
An amazing overview of the core Rust types and traits:
rustcurious.com/elements/
🦀 #Rust Tip #112:
Rust will happily compile and call C functions in unsafe mode. Just declare them in an extern "C" block. Great for interop with legacy code or standard library C functions.
🦀 #Rust Tip #110:
Rust 2024 edition allows if let Some() chaining. Finally!

















