For crates that require unsafe usage, it is possible to ensure all usages of unsafe are documented and justified as sound by adding #![forbid(clippy::undocumented_unsafe_blocks)] to the top of a crate. The lint was recently added so it is not currently very popular, but I think there is still potential.
For crates that require
unsafeusage, it is possible to ensure all usages ofunsafeare documented and justified as sound by adding#![forbid(clippy::undocumented_unsafe_blocks)]to the top of a crate. The lint was recently added so it is not currently very popular, but I think there is still potential.