Skip to content
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

Added release rust min profile. #123

Merged
merged 2 commits into from
Mar 2, 2023
Merged

Added release rust min profile. #123

merged 2 commits into from
Mar 2, 2023

Conversation

hulto
Copy link
Collaborator

@hulto hulto commented Feb 28, 2023

What type of PR is this?

/kind feature

What this PR does / why we need it:

Adds options to the cargo build --release profile so that our rust payloads are minimal.
Also recommend adding the command upx --best --lzma target/release/imix to reduce the payload further.
11MB ---> 2.7 MB.

Thanks johnthagen.
https://github.com/johnthagen/min-sized-rust

Which issue(s) this PR fixes:

N/A

@hulto hulto added feature New feature or request dependencies Pull requests that update a dependency file labels Feb 28, 2023
Copy link
Collaborator

@KCarretto KCarretto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat

@KCarretto KCarretto merged commit f57b2f4 into main Mar 2, 2023
@KCarretto KCarretto deleted the cargo-build-release branch March 2, 2023 04:17
KCarretto added a commit that referenced this pull request Feb 1, 2024
 
Added release rust min profile. (#123)

Co-authored-by: KCarretto <Kcarretto@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants