Skip to content

Commit

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

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

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

* add comment, no strip symbols
  • Loading branch information
Nutomic authored Jul 13, 2023
1 parent 7d8cb93 commit 39f28c1
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 39f28c1

Please sign in to comment.