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

[Question] Binary sizes on windows #1434

Open
lucas-labs opened this issue Sep 28, 2024 · 0 comments
Open

[Question] Binary sizes on windows #1434

lucas-labs opened this issue Sep 28, 2024 · 0 comments

Comments

@lucas-labs
Copy link

Hi, first of all, I apologize for using an issue to ask a question (I couldn’t find another channel to do so).

I'm pretty new to Rust, and this is my first time using cargo-dist —by the way, it's awesome!

However, I noticed that when I build my project locally on my Windows pc using cargo build --profile dist --target x86_64-pc-windows-msvc, the generated binary is 839kb. But when cargo-dist builds it in CI using the same target, the final .exe is 953kb, which is over 10% larger.

I've been trying to figure this out for hours but couldn’t find the cause. It’s not that I’m too concerned about the binary size, I’m just wondering if I’m doing something wrong or if there’s something else I need to configure. Or at the very least, I’d like to understand why this is happening.

Has anyone encountered the same behavior or knows why this is happening?

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant