Daily Rust (@rustoftheday) header
Daily Rust (@rustoftheday) profile picture

Daily tips & tricks for Rust 🦀 programming. Following back all accounts with 🦀 or 🐪 in their profile.

Joined November 2023
Photo by Daily Rust (@rustoftheday)Photo by Daily Rust (@rustoftheday)Photo by Daily Rust (@rustoftheday)Photo by Daily Rust (@rustoftheday)Photo by Daily Rust (@rustoftheday)Photo by Daily Rust (@rustoftheday)Photo by Daily Rust (@rustoftheday)Photo by Daily Rust (@rustoftheday)Photo by Daily Rust (@rustoftheday)
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…
27
42
8
1,065
90,458
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
6
84
8,583
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
8
44
2
420
22,405
🥵
7
16
1
169
5,739
Daily Rust retweeted
when you write a rust app, no tests, and it works first try
15
23
8
526
17,088
C++ and memory unsafe languages should be considered deprecated
3
1
6
796
✨ I love Rust's Result type: it's either an error or a value. In Go, a person can do `return nil, nil` that can mess you up if you assume err == nil means a value is present. Rust avoids bugs in this case Example: Ok(true) InvalidErr It is either this or that
7
2
1
34
2,145
Need to delete files safely in Rust? 🦀 🚮 trash-rs: A Rust library for moving files to the Recycle Bin. 📚 Docs: docs.rs/trash ⭐ GitHub: github.com/Byron/trash-rs #rustlang #library #opensource #trash #recycle #restore #filesystem
2
4
71
7,211
Rust 1.84.0 has been released!🌈🦀✨ This release includes Cargo's new MSRV aware resolver, a new trait solver for checking coherence, new pointer provenance APIs and docs, integer square root methods, and more! Check out the blog post and release notes: blog.rust-lang.org/2025/01/0…
10
231
12
970
61,148
stay classy.
2
14
182
7,772
Rust DX is just too good to pass.
2
16
3
289
15,012
Daily Rust retweeted
> Asks if 'if err != nil' is really that bad > Screenshot example shows accidental fallthrough from error case to success case Do we really need to discuss further?
This Post is from a suspended account. Learn more
45
145
6
2,542
245,156
Thinking of rust lifetimes like a box of toys, where you decide how long each toy stays in the box before you put it away, really helps to understand the concept very well Rust is just trying to keep things safe before you compile the program
5
13
1,033
Daily Rust retweeted
Replying to @rustoftheday
Interestingly a closure that does not capture anything can be cast implicitly into a function pointer fn 🤓
1
5
733
Daily Rust retweeted
Replying to @ChShersh
Rust is ugly up until u see ugly C++. It is way worse looking than rust by a lot
1
6
831
Rust stole C++'s best features - youtu.be/sjsnuirLyKM
5
51
2,193
The Rust compiler teaching you how to write memory safe code
pair programming with the junior dev
3
16
236
10,152
Happy to see my latest TUI project Binsider on the front page of Hacker News! 🚀 Check it out: binsider.dev ⭐ GitHub: github.com/orhun/binsider #rustlang #tui
4
46
2,336
You can run TUIs in the browser with Rust! 🦀 🐭 ratframe : egui widget + @ratatui_rs backend. 🔥 Ratatui integrates with egui, enabling compilation to WASM! 🚀 Demo: gold-silver-copper.github.io… ⭐ GitHub: github.com/gold-silver-coppe… #rustlang #ratatui #tui #egui #wasm #browser #web
1
16
1
116
5,718