pub fn rust_checks(crate_dir: &Path, target_dir: &Path) -> Vec<Check>
The checks that hold for any Rust crate, bindings or not: fmt, clippy (warnings are errors), cargo test, and unsafe only with a // SAFETY: comment.
unsafe
// SAFETY: