Hacker News new | ask | show | jobs
by burntsushi 2276 days ago
If you don't mind the performance penalty, then just use Mutex<HashMap>. You don't have to use this.

Rust isn't about completely eliminating all unsafe code. It never has been. It has always been about building safe abstractions with auditable unsafe internal parts.