Announcing Rust 1.80.0 (blog.rust-lang.org)
from mac@programming.dev to rust@programming.dev on 25 Jul 2024 17:15
https://programming.dev/post/17324240

#rust

threaded - newest

d_k_bo@feddit.org on 25 Jul 2024 18:28 next collapse

Time to cargo rm once_cell!

Deebster@programming.dev on 31 Jul 2024 09:19 collapse

Thank you and goodbye to lazy-static, I’ll think of you every time I use a regex.

d_k_bo@feddit.org on 31 Jul 2024 11:58 collapse

You may be interested in lazy-regex.

Deebster@programming.dev on 01 Aug 2024 06:38 collapse

I am, thanks!

Ephera@lemmy.ml on 26 Jul 2024 05:20 next collapse

Immediately used the LazyLock + static to build a quasi-constant which does an expensive check only once at program start, and only when it’s actually used. Pretty cool.

rustyfemboy@lemmy.blahaj.zone on 09 Aug 11:03 collapse

It’s really nice how you can now iterate over a boxed slice using for x in &y rather than being forced to use for x in y.iter().