Repository navigation
root: don't include debug info for rust release profile - #24664
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adjusts the Rust workspace’s release build configuration (root Cargo.toml) to avoid generating full debuginfo that is subsequently stripped, reducing link-time memory usage for lto = "fat" release builds.
Changes:
- Set
[profile.release].debugfrom2to0while keepingstrip = trueandlto = "fat".
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
There was a reason why I left it like that, but I can't remember why. Could it have something to do with line number for logs or tracebacks? |
✅ Deploy Preview for authentik-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Since |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #24664 +/- ##
==========================================
- Coverage 91.21% 91.17% -0.04%
==========================================
Files 1128 1128
Lines 70638 70638
Branches 3870 3870
==========================================
- Hits 64433 64406 -27
- Misses 6170 6197 +27
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
rissson
left a comment
There was a problem hiding this comment.
Approving in principle, with a small nit
|
🍒 Cherry-pick to |
|
🍒 Cherry-pick to |
|
authentik PR Installation instructions Instructions for docker-composeAdd the following block to your AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-fabd82369d280f9d6c314366fe0337bcd9e4f765
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)sAfterwards, run the upgrade commands from the latest release notes. Instructions for KubernetesAdd the following block to your authentik:
outposts:
container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
image:
repository: ghcr.io/goauthentik/dev-server
tag: gh-fabd82369d280f9d6c314366fe0337bcd9e4f765Afterwards, run the upgrade commands from the latest release notes. |
…24664 to version-2026.5) (#24670) Co-authored-by: Emil Burzo <[email protected]>
…24664 to version-2026.8) (#24669) Co-authored-by: Emil Burzo <[email protected]>
Because:
debug = 2tells the compiler to make full debug infostrip = truethen removes that info from the binaryIt seems pointless to keep the debug info, as builders with less RAM have trouble building it in the link optimizer step due the amount of data:
debug = 2: 0.83 GiBdebug = 0: 0.58 GiBlto = "thin"might also be something worth exploring, but that can be later on.