rust-unsafe
Installation
SKILL.md
Rust unsafe
Find the unsafe surface
Run this inventory when you audit a crate, or when you add or remove unsafe code. Do not rely on a memory of where unsafe lives:
# Crates that promise no unsafe in their own source.
rg -l '#!\[forbid\(unsafe_code\)\]' --type rust
# Where unsafe code lives.
rg -n 'unsafe\s*\{|unsafe fn|unsafe impl|unsafe extern' --type rust
# Symbols that leave the crate unmangled, and custom link sections.
rg -n '#\[(unsafe\()?(no_mangle|export_name|link_section)' --type rust