Hacker News new | past | comments | ask | show | jobs | submit login

Oh so your problem is that when attempting to dynamically link to the standard library, you're missing out on the dead code elimination you'd get when statically linking. Rust doesn't have a stable ABI anyways, so you can't really share the standard library between programs unless you're really careful.



you nailed it.

neither LTO nor panic=abort can be used at dynamic link, no stable ABI is another thing.

to me it means Rust is not a good fit for embedded space for majority of the use cases, sadly.


I'm not sure what embedded space you're referring to, but microcontrollers, in my experience, generally use monolithic binaries. I'm unsure why you'd wish to use dynamic linking in those cases.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: