Check if your package uses unsafe code

cargo rustc

  • Compile a Rust package, and pass extra options to the compiler.
    More information: <https://doc.rust-lang.org/cargo/commands/cargo-rustc.html>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

cargo rustc --lib -- -D unsafe-code

click the source code to copy install cargo rustc on any operating system with command-not-found.com