Unsafe Rust

Justify, document, and verify unsafe Rust — safety invariants on every unsafe block, sound safe wrappers, undefined behaviour hazards, and verification with Miri. Use when writing or reviewing unsafe code, when working across an FFI boundary, when raw pointers or transmute appear, when a safe API wraps an unsafe primitive, or when the user asks whether an unsafe block is justified.

rewrite-rs 630374e 3 files · 11.6 KB Updated

File contents

rewrite-rs/skills/tree/main/skills/rust/unsafe-rust commit 630374e2aa

Frequently asked questions

npx skillmds@latest add rewrite-rs/unsafe-rust