Skip to content

Commit

Permalink
doc: expand cargo profile comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sveitser committed Mar 4, 2025
1 parent cd2e02f commit 48bd7b8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -229,13 +229,14 @@ time = "0.3"
trait-set = "0.3.0"

[profile.dev]
# Strip debugging information from binaries. Reduces memory usage during
# compilation by about 2/3, avoids OOM errors on CI.
# Probably the least demanding setting in terms of compilation time and memory
# that still provide tracebacks with line numbers.
strip = "none"
debug = "line-tables-only"

# Keep everything, for debugging.
[profile.dev-debug]
# This profile should allow connecting debuggers. Compiles more slowly and
# requires significantly more memory to compile.
inherits = "dev"
strip = "none"
debug = "full"
Expand Down

0 comments on commit 48bd7b8

Please sign in to comment.