|
|
|
|
|
by vertex-four
4252 days ago
|
|
> There is no way of ensuring a rust program does not contain any unsafe code. Sure there is. There's a compiler lint available which can disallow "unsafe" code, i.e. code which is able to create null pointer errors (and thus segfaults). Of course, the standard library will always contain a bunch of unsafe stuff - but at least it's shared between every project, and any bugs can be fixed once, and assuming it's correct any non-unsafe code that depends on it is memory-safe. |
|