3 ms·
"The Rust standard library is enormous." Years ago I tried compiling a rust sample program. The binary size was one thing that put me off. Today, I see the i
by 1vuio0pswjnm7 3y ago
"The Rust standard library is enormous."
Years ago I tried compiling a rust sample program. The binary size was one thing that put me off.
Today, I see the issue of large binary size has been addressed. The binary I get is sufficiently small.
If this issue of ~500M standard library is fixed, e.g., if some of it is made optional not mandatory, I will give rust another try.
- afdbcreid 3y agoRust binaries are by default nowhere close to 500MB. If they are not small enough for you, you can try https://github.com/johnthagen/min-sized-rust https://github.com/johnthagen/min-sized-rust. By avoiding the formatting machinery and using `panic_immediate_abort` you can get about the size of C binaries.
- 1vuio0pswjnm7 3y agoComment is based on the rust-std package I'm currently seeing in VoidLinux. It is over 500MB. 3 packages will be downloaded: 3 packages will be installed: libexecinfo-1.1_3 libexecinfo-devel-1.1_3 rust-std-1.73.0_1 Size to download: 136MB Size required on disk: 509MB Space available on disk: never enough! Cheacking Debian and NetBSD it seems like the Rust standard library is smaller, much less than 500MB. The simple question is how much space is required for an installation of the Rust compiler. On VoidLinux, it's significantly more space than for a GCC installation. 509MB is just too much for my tastes.