Add a minimal-size cargo build profile for users who want to build a smaller binary#21826
Merged
Gankra merged 1 commit intoastral-sh:mainfrom Dec 6, 2025
Merged
Add a minimal-size cargo build profile for users who want to build a smaller binary#21826Gankra merged 1 commit intoastral-sh:mainfrom
minimal-size cargo build profile for users who want to build a smaller binary#21826Gankra merged 1 commit intoastral-sh:mainfrom
Conversation
Gankra
approved these changes
Dec 6, 2025
Contributor
Gankra
left a comment
There was a problem hiding this comment.
No harm in including this, and convenient to be able to point people to if they complain about size.
|
minimal-size cargo build profile for users who want to build a smaller binary
dcreager
added a commit
that referenced
this pull request
Dec 7, 2025
* origin/main: [ty] Add test case for fixed panic (#21832) [ty] Avoid double-analyzing tuple in `Final` subscript (#21828) [flake8-bandit] Fix false positive when using non-standard `CSafeLoader` path (S506). (#21830) Add minimal-size build profile (#21826) [ty] Allow `tuple[Any, ...]` to assign to `tuple[int, *tuple[int, ...]]` (#21803) [ty] Support renaming import aliases (#21792) [ty] Add redeclaration LSP tests (#21812) [ty] more detailed description of "Size limit on unions of literals" in mdtest (#21804) [ty] Complete support for `ParamSpec` (#21445) [ty] Update benchmark dependencies (#21815)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the same
minimal-sizeprofile asuvrepo workspace hasbut removes its
panic = "abort"settingminimal-sizeprofile for the workspace #21825Compared to the ones pre-built via
uv tool install, this builds 35% smaller ruff and 24% smaller ty binaries(as measured here)