Skip to content

Commit

Permalink
chore(cargo): forbid unsafe{} for all project code
Browse files Browse the repository at this point in the history
  • Loading branch information
flrgh committed Jul 10, 2024
1 parent 0ea460e commit 0dbec0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ libc = "0.2"
nix = { version = "0.29.0", features = ["signal", "process", "fs", "feature"] }
thiserror = "1.0.61"

[lints.rust]
unsafe_code = "forbid"

[profile.release]
opt-level = "z"
strip = true
Expand Down

0 comments on commit 0dbec0f

Please sign in to comment.