Skip to content

Commit

Permalink
Add #![forbid(unsafe_code)]
Browse files Browse the repository at this point in the history
This library has an explicit design intent to be implemented via only safe interfaces and to be written as safe code, and this gives a nice lint check to ensure we stay honest.
  • Loading branch information
cole14 committed Oct 9, 2023
1 parent 912bd24 commit 8ca5e54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
#![cfg_attr(all(feature = "nightly", not(feature = "std")), feature(error_in_core))]
#![warn(rust_2018_idioms)]
#![deny(missing_debug_implementations)]
#![forbid(unsafe_code)]

pub mod abi;

Expand Down

0 comments on commit 8ca5e54

Please sign in to comment.