Skip to content

Commit

Permalink
build(cargo): don't compile and link debug info
Browse files Browse the repository at this point in the history
At the cost of not having line numbers in backtraces, it reduces build times
  • Loading branch information
SeaDve committed Feb 19, 2024
1 parent f632d5c commit 7139957
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ edition = "2021"
[profile.release]
lto = true

# Don't compile and link debug info; these reduce build times at the
# cost of not having line numbers in backtraces.
[profile.dev]
debug = 0
strip = "debuginfo"

[dependencies]
adw = { package = "libadwaita", version = "0.6", features = ["v1_5"] }
anyhow = "1.0.59"
Expand Down

0 comments on commit 7139957

Please sign in to comment.