axodotdev / axodotdev/cargo-dist
[Question] Binary sizes on windows
- Dominant language
- Rust
- Stars
- 2.1k
- Forks
- 149
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 32
Description
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](https://github.com/lucas-labs/coco) 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!!
Contributor guide
Assessment
This issue has not been assessed yet.