Skip to content

Commit

Permalink
config: set up cargo profiles boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoniePhiline committed Mar 29, 2024
1 parent d2c3ea7 commit 5c9e040
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,19 @@ unsafe_code = "deny" # Exceptions must be discussed and deemed indispensable and
pedantic = "warn"
cargo = "warn"
multiple_crate_versions = { level = "allow", priority = 1 } # https://git.nsb-software.de/devel/manifest/-/blob/main/policy.md#explicit-opt-out-of-clippymultiple_crate_versions

[profile.dev]
debug = 1 # Less precise locations.
split-debuginfo="unpacked"

[profile.dev.package."*"]
debug = false # No debug symbols for deps.
opt-level = 2 # Makes their code smaller too.

[profile.dev.build-override]
opt-level = 3

[profile.release]
lto = true
debug = 1 # Keep debug symbols for now; less precise locations.
# strip = true # Automatically strip symbols.

0 comments on commit 5c9e040

Please sign in to comment.