Guide agents through writing, reviewing, and reasoning about unsafe Rust: what operations require unsafe, how to write safe abstractions, audit patterns, common pitfalls, and when to reach for unsafe.
unsafe grants exactly five capabilities not available in safe Rust:
Everything else in Rust — including memory allocation, borrowing, closures — follows safe rules even inside unsafe blocks.
시스템 프로그래밍을 위한 Rust 안전하지 않은 코드 기술. 안전하지 않은 Rust를 작성하거나 검토할 때, 안전하지 않은 작업이 필요한 작업을 이해하고, 안전하지 않은 코드에 대해 안전한 추상화를 구현하고, 안전하지 않은 블록을 감사하거나 원시 포인터, 변환 및 extern을 이해할 때 사용합니다. 안전하지 않은 Rust, 원시 포인터, 변환, 안전하지 않은 블록, 안전한 래퍼 작성, UnsafeCell, 안전하지 않은 특성 impl 또는 안전하지 않은 코드 감사에 대한 쿼리에 대해 활성화됩니다. 출처: mohitmishra786/low-level-dev-skills.