Rust: Don't Panic https://lobste.rs/s/qpubrj #video #rust
https://www.youtube.com/watch?v=usRlRCNIOG0
rust
🚀 划时代的 Rust 日志体验来了(fake) —— CCB Logger 正式发布!✨
最近写了个 CLI 工具,顺手打磨了个日志库:CCB Logger
它不复杂,就是想让 Rust 的日志输出 —— 更清晰、更结构化、开箱即用
比如这样:
info!("User login", "user_id", "12345", "ip", "192.168.1.100");终端里就长这样:
2024-01-15 14:30:25.123 INFO User login user_id=12345 ip=192.168.1.100对齐整齐、颜色舒服、时间精确,字段一目了然。没有图标,不花哨,但在终端里看得就是顺眼。
🔧 特性很务实:
- 五种日志等级(Trace 到 Error),统一四字符对齐
- 自动判断终端,决定是否上色
- 支持全局 logger 和上下文注入(比如 service=api)
- 宏简洁,
info!, error! 直接用- 零配置启动,也能按需定制
名字叫 CCB?是个朋友随口起的,没特别意思,但挺好记(真的 😄)
如果你也在写 CLI 工具或小服务,想找个轻量、好看、结构化的日志方案,不妨试试看。
- 📦
cargo add ccb Docs- 🐱 GitHub: ccb⭐
- 作案动机 charmbracelet/log 这样的项目在 Rust 里没有,那就自己改。
欢迎试用,也欢迎提建议~
#Rust #logging #clitools #opensource #rustlang #shit #aigenerated
Who even uses jemalloc in 2026 anyway? (many major projects) https://lobste.rs/s/vr4rsc #c #c++ #performance #rust
https://theconsensus.dev/p/2026/04/16/who-even-uses-jemalloc-anyway.html
Tucked away in the woodlands of Pennsylvania lies a unique fleet of streamlined 1930s and 1950s streetcars. These St Louis and Pullman-Standard carriages have glorious vintage Americana vibes.
Many of these date to the height of the Streamline Moderne era. At this time, streamlined aerodynamic forms replaced the geometric shapes and excessive ornamentation of the earlier Art Deco style.
#Streetcar #ArtDeco #Pennsylvania #Transportation #Moderne #Photography #Trams #Rust
Box to save memory via @wezm https://lobste.rs/s/p76mlf #rust
https://dystroy.org/blog/box-to-save-memory/
Python Yet Reforged Entirely https://lobste.rs/s/phjtbx #compilers #python #rust #vibecoding
https://pyre-lang.org/
Revealing the frontier with stacks and queues https://lobste.rs/s/aw5hgu #performance #rust
https://dystroy.org/blog/stack-and-queues/
Lisette — Rust syntax, Go runtime https://lobste.rs/s/rw62j7 #go #plt #rust
https://lisette.run
113 issues found within rust-coreutils https://lobste.rs/s/9p8j3s #rust #security
https://discourse.ubuntu.com/t/an-update-on-rust-coreutils/80773
Running Bare-Metal Rust Alongside ESP-IDF on the ESP32-S3's Second Core https://lobste.rs/s/wyvcvr #hardware #rust
https://tingouw.com/blog/embedded/esp32/run_rust_on_app_core
👈 Boop! Photo of me booping a giant bucket wheel excavator right on the bucket-snoot.
The scale of these machines is mind-blowing! A mechanical monster that once tore through the Earth strip mining coal.
This monster is long dead, its rusting hulk retired and put out to pasture.
#Germany #Rust #Explore #Photography #Machine #WeirdCarMastodon #Adventure #Mining
Pure Borrow: Linear Haskell Meets Rust-Style Borrowing https://lobste.rs/s/esidgp #haskell #plt #rust
https://discourse.haskell.org/t/pure-borrow-linear-haskell-meets-rust-style-borrowing/13975
Embedded Rust or C Firmware? Lessons from an Industrial Microcontroller Use Case with Ariel OS via @wezm https://lobste.rs/s/bc2zth #pdf #c #hardware #rust
https://arxiv.org/pdf/2604.25679
Zig vs Rust in 2026 https://lobste.rs/s/fnhsha #rust #zig
https://zackoverflow.dev/writing/zig-vs-rust-in-2026/
What Zig felt like, coming from Rust https://lobste.rs/s/oaybfe #rust #zig
https://besok.github.io/posts/what-zig-felt-like-coming-from-rust/
Turning Git commits into changelog with Git-Cliff - YouTube https://lobste.rs/s/7va7at #video #rust #vcs
https://www.youtube.com/watch?v=RWh8qbiLRts
Understanding Pin (for C and C++ Developers) (2019) https://lobste.rs/s/u3lz7o #c++ #rust
https://dpzmick.com/posts/2019-05-25-pin-rs-cpp.html
Understanding Traceroute https://lobste.rs/s/nwpcjt #networking #rust
https://tech.stonecharioteer.com/posts/2026/traceroute/
Borrow-checking surprises https://lobste.rs/s/lgdejq #plt #rust
https://www.scattered-thoughts.net/writing/borrow-checking-surprises/
Tonic is joining the gRPC project https://lobste.rs/s/9ygtid #rust
https://luciofranco.com/blog/tonic-joins-grpc/
Announcing Zstandard in Rust https://lobste.rs/s/jhbndn #rust
https://trifectatech.org/blog/announcing-zstandard-in-rust/
iddqd, or the hardest kind of unsafe Rust by @rain https://lobste.rs/s/6eyhii #rust
https://oxide.computer/blog/iddqd-unsafe
I Built My Own Hair Electrolysis Machine https://lobste.rs/s/lm0mlt #hardware #rust
https://www.scd31.com/posts/diy-hair-electrolysis-machine
samply: Command-line sampling profiler for macOS, Linux, and Windows https://lobste.rs/s/x1mejy #rust
https://github.com/mstange/samply