How do you generate a standalone binary?

41 points XiPingTing

GCC has a -nostdlib flag. This is useful for embedded or OS development. For example if I'm writing the logic for a washing machine microcontroller, I don't want to have to download Linux or roll my own memcpy.

Does such a flag exist in Rust?

​

My actual hobby project is to write an HTTPS server for the Raspberry Pi Pico