Skip to content

Commit

Permalink
Add dev profile to strip symbols and disable debug info (ref LemmyNet…
Browse files Browse the repository at this point in the history
…#3610) (LemmyNet#3611)

* Add dev profile to strip symbols and disable debug info (ref LemmyNet#3610)

This significantly speeds up builds:
- with strip symbols and debug 0: 43s
- without: 169s

* add comment, no strip symbols
  • Loading branch information
Nutomic committed Jul 19, 2023
1 parent 4bf47fd commit 9a05112
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ doctest = false
debug = 0
lto = "thin"

# This profile significantly speeds up build time. If debug info is needed you can comment the line
# out temporarily, but make sure to leave this in the main branch.
[profile.dev]
debug = 0

[features]
embed-pictrs = ["pict-rs"]
console = ["console-subscriber", "opentelemetry", "opentelemetry-otlp", "tracing-opentelemetry", "reqwest-tracing/opentelemetry_0_16"]
Expand Down

0 comments on commit 9a05112

Please sign in to comment.