Rust does let you do unsafe array indexing and other unsafe stuff. But it doesn&#x27;t support switching the semantics of safe code to unsafe with a build flag, you need to explicitly use &quot;unsafe&quot; in code.