Skip to content

Commit d1cf2ff

Browse files
committed
Cargo.toml: move panic=abort to release profile (save binary size)
1 parent d432131 commit d1cf2ff

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

Cargo.toml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -587,17 +587,13 @@ name = "uudoc"
587587
path = "src/bin/uudoc.rs"
588588
required-features = ["uudoc"]
589589

590-
# The default release profile. It contains all optimizations.
591-
# With this profile (like in the standard release profile),
592-
# the stack traces will still be available.
590+
# The default release profile with some optimizations.
593591
[profile.release]
594592
lto = true
593+
panic = "abort"
595594

596-
# A release-like profile that is tuned to be fast, even when being fast
597-
# compromises on binary size. This includes aborting on panic.
598595
[profile.release-fast]
599596
inherits = "release"
600-
panic = "abort"
601597
codegen-units = 1
602598

603599
# A release-like profile that is as small as possible.
@@ -606,10 +602,11 @@ inherits = "release-fast"
606602
opt-level = "z"
607603
strip = true
608604

609-
# A release-like profile with debug info, useful for profiling.
605+
# A release-like profile with debug info for profiling.
610606
# See https://github.com/mstange/samply .
611607
[profile.profiling]
612608
inherits = "release"
609+
panic = "unwind"
613610
debug = true
614611

615612
[lints]

0 commit comments

Comments
 (0)