News for hackers. Stuff that matters.
Re:Rust – How do I create a global, mutable singleton? (2015) by mjw1007 on Wednesday July 22, 2020 @03:08PM (#23920465)
The Rust RTIC framework for embedded code (previously named RTFM) works rather like that.

https://rtic.rs/0.5/book/en/

It's designed for working with interrupts safely rather than threads (so the "initialisation phase" is basically "before enabling interrupts"), but I suppose the same techniques could be used to make something more mainstream.

There are no comments on this comment yet.