• CupcakeOfSpice [she/her]
    ·
    4 months ago

    I don't remember exactly how, but you can specify a compiler using arcane magic I don't fully understand to compile for a baremetal target. Some people do full OS dev in just Rust, though usually C and ASM are involved to bootstrap. It can be somewhat arcane, though.

    • Llituro [he/him, they/them]
      ·
      4 months ago

      There's a blog about writing a micro kernel in Rust that details how to compile for bare metal. It's actually possible to entirely avoid C, although a bit annoying to be sure.