1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-29 12:07:46 +00:00

Merge pull request #7862 from drinkcat/profiling-profile

Cargo.toml: Add profiling profile
This commit is contained in:
Daniel Hofstetter 2025-04-30 09:14:32 +02:00 committed by GitHub
commit 698cdf1427
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 17 additions and 3 deletions

View file

@ -548,9 +548,9 @@ name = "uudoc"
path = "src/bin/uudoc.rs"
required-features = ["uudoc"]
# The default release profile. It contains all optimizations, without
# sacrificing debug info. With this profile (like in the standard
# release profile), the debug info and the stack traces will still be available.
# The default release profile. It contains all optimizations.
# With this profile (like in the standard release profile),
# the stack traces will still be available.
[profile.release]
lto = true
@ -567,6 +567,12 @@ opt-level = "z"
panic = "abort"
strip = true
# A release-like profile with debug info, useful for profiling.
# See https://github.com/mstange/samply .
[profile.profiling]
inherits = "release"
debug = true
[lints.clippy]
multiple_crate_versions = "allow"
cargo_common_metadata = "allow"