Hi, I'm Eric.

I’m an avid world traveler, photographer, software developer, and digital storyteller.

I help implement the Content Authenticity Initiative at Adobe.

Search Results

Rust global variables, two years on

Found on 26 November 2023 via Mastodon 472

via Rust Weekly 🦀 (@rust_discussions@mastodon.social): Rust global variables, two years on

A thorough update on the state of global variables in Rust. With Mutex::new() now being const and OnceLock in the standard library, many common patterns that previously required external crates like once_cell or lazy_static now work out of the box. A great reference for anyone working with Rust globals.

Rust global variables, two years on

If you’ve enjoyed this …

Subscribe to my free and occasional (never more than weekly) e-mail newsletter with my latest travel and other stories:

Or follow me on one or more of the socials: