Iced: Large size of release folder

Created on 18 Nov 2020  路  1Comment  路  Source: hecrj/iced

After cargo build --release on Windows with only the counter example, the release folder is 459MB.
Am I missing something?

question

Most helpful comment

I am not a rust compiler expert but I think the release folder size is not very relevant here. It contains many dependencies, libs and intermediate compiler representations.

You might want to check check the final binary size in target/release/{my_binary_name}. I don't know the exact path on windows but I am quite sure it's the same (with backslashes).

After that if you still think your binary is too large you can investigate further. There are numerous article and blog posts on how to do this : https://github.com/johnthagen/min-sized-rust

I hope this answer your question.

>All comments

I am not a rust compiler expert but I think the release folder size is not very relevant here. It contains many dependencies, libs and intermediate compiler representations.

You might want to check check the final binary size in target/release/{my_binary_name}. I don't know the exact path on windows but I am quite sure it's the same (with backslashes).

After that if you still think your binary is too large you can investigate further. There are numerous article and blog posts on how to do this : https://github.com/johnthagen/min-sized-rust

I hope this answer your question.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CallistoM picture CallistoM  路  3Comments

Shootertrex picture Shootertrex  路  3Comments

hecrj picture hecrj  路  3Comments

sumibi-yakitori picture sumibi-yakitori  路  3Comments

rowungiles picture rowungiles  路  4Comments