Open lucas-labs opened 1 month ago
Sorry for the late reply! I haven't seen this before, but I'll look into it to see if I can identify what the cause is.
It looks like you don't have a rust-toolchain.toml
; have you double checked that the local build and the cargo-dist build were done using the same versions of Rust?
hey @lucas-labs wanted to follow up- were you able to see if maybe the issue was building the binaries with 2 different rust versions?
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 whencargo-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!!