Hacker News new | ask | show | jobs
by ozgrakkurt 4 days ago
It is very obvious if you try to actually do something without libc in rust. It is just a major pain. You could theoretically do it but not really in practice.

Doing `RUSTFLAGS="-C target-cpu=native" cargo install --path . --locked` on my project.

With lto=`thin` just takes 3.6 seconds on my pc which is very bad if you compare it to the c++ project.

Also the output binary is 1.3MB which is also supremely bad.