Skip to content

Shrink backtrace generation in std #123964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,23 @@ overflow-checks = false
# (more data to chew through) and binaries to be larger without really all that
# much benefit. This section turns them all to down to have no debuginfo which
# helps to improve link times a little bit.
#
# We also trim down the binary size of generated code by telling LLVM to
# optimize for size. This code should not be particularly hot, so there's not
# much advantage in making it fast (vs. making it small).
[profile.release.package]
addr2line.debug = 0
adler.debug = 0
gimli.debug = 0
miniz_oxide.debug = 0
object.debug = 0
rustc-demangle.debug = 0
addr2line.opt-level = "z"
adler.opt-level = "z"
gimli.opt-level = "z"
miniz_oxide.opt-level = "z"
object.opt-level = "z"
rustc-demangle.opt-level = "z"

# These are very thin wrappers around executing lld with the right binary name.
# Basically nothing within them can go wrong without having been explicitly logged anyway.
Expand Down
Loading