Grappling unsafe in real world rust projects is impossible

Опубликовано: 23 Июнь 2026
на канале: coshvji cujmlqef
989
17

We often hear rust evangelists (C++ violates human rights guys like Alex Gaynor) said unsafe is rare and easily reason about since you can just grapple all unsafe in rust code (because they believe it is rare so you can easily do that).

https://github.com/mozilla/gecko-dev/...

I made a statistic in gecko (which is the browser engine of firefox). They have 1605 in 8262 (19.43%) rust source files that use unsafe. 20006 unsafe keywords in total. This is nowhere truly rare.

Tell me how are you grappling with all unsafe usage if you have 20% of rust source files that use unsafe (a lot of files just use unsafe for all functions)?

Join discord if you have any question
  / discord  


The program i wrote to count files.
https://github.com/tearosccebe/fast_i...